(use-modules (guix build-system haskell) (guix download) (guix gexp) (guix git-download) (guix licenses) (guix packages) (gnu packages haskell-xyz)) (let ((%source-dir (dirname (current-filename)))) (package (name "SJW") (version "devel") (source (local-file %source-dir #:recursive? #t #:select? (git-predicate %source-dir))) (build-system haskell-build-system) (inputs (list ghc-attoparsec ghc-random ghc-optparse-applicative)) (native-search-paths (list (search-path-specification (variable "SJW_PATH") (files '("lib/SJW"))))) (home-page "https://git.marvid.fr/Tissevert/SJW") (synopsis "The Simple Javascript Wrench") (description "SJW is a very simple tool to pack several JS modules into a single script. It doesn't really do proper compilation work (yet) except resolving the modules dependencies and detecting import loops but it provides each module with an independent execution context in the resulting script.") (license gpl3+)))