diff --git a/pkgs/development/compilers/elm/elm-server.nix b/pkgs/development/compilers/elm/elm-server.nix new file mode 100644 index 000000000000..1750213ac8af --- /dev/null +++ b/pkgs/development/compilers/elm/elm-server.nix @@ -0,0 +1,21 @@ +{ cabal, blazeHtml, deepseq, Elm, filepath, happstackServer, HTTP +, mtl, parsec, transformers +}: + +cabal.mkDerivation (self: { + pname = "elm-server"; + version = "0.8"; + sha256 = "0mnxayfg54f5mr27sd1zw3xrdijppgvrz2yzzmhp07qc1jiyfald"; + isLibrary = false; + isExecutable = true; + buildDepends = [ + blazeHtml deepseq Elm filepath happstackServer HTTP mtl parsec + transformers + ]; + meta = { + homepage = "http://elm-lang.org"; + description = "The Elm language server"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/compilers/elm/elm.nix b/pkgs/development/compilers/elm/elm.nix new file mode 100644 index 000000000000..8196458c70d4 --- /dev/null +++ b/pkgs/development/compilers/elm/elm.nix @@ -0,0 +1,22 @@ +{ cabal, blazeHtml, blazeMarkup, cmdargs, deepseq, filepath, hjsmin +, indents, json, mtl, pandoc, parsec, shakespeare, text +, transformers +}: + +cabal.mkDerivation (self: { + pname = "Elm"; + version = "0.8.0.3"; + sha256 = "0zai8glmkiqramivgz405zh385cz166gpry2yl29g37dxpwxffzb"; + isLibrary = true; + isExecutable = true; + buildDepends = [ + blazeHtml blazeMarkup cmdargs deepseq filepath hjsmin indents json + mtl pandoc parsec shakespeare text transformers + ]; + meta = { + homepage = "http://elm-lang.org"; + description = "The Elm language module"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/concatenative/default.nix b/pkgs/development/libraries/haskell/concatenative/default.nix new file mode 100644 index 000000000000..34344c1566bd --- /dev/null +++ b/pkgs/development/libraries/haskell/concatenative/default.nix @@ -0,0 +1,13 @@ +{ cabal }: + +cabal.mkDerivation (self: { + pname = "concatenative"; + version = "1.0.1"; + sha256 = "05xwqvcdnk8bsyj698ab9jxpa1nk23pf3m7wi9mwmw0q8n99fngd"; + meta = { + homepage = "https://patch-tag.com/r/salazar/concatenative/snapshot/current/content/pretty"; + description = "A library for postfix control flow"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/indents/default.nix b/pkgs/development/libraries/haskell/indents/default.nix new file mode 100644 index 000000000000..84a19f541ee0 --- /dev/null +++ b/pkgs/development/libraries/haskell/indents/default.nix @@ -0,0 +1,14 @@ +{ cabal, concatenative, mtl, parsec }: + +cabal.mkDerivation (self: { + pname = "indents"; + version = "0.3.3"; + sha256 = "16lz21bp9j14xilnq8yym22p3saxvc9fsgfcf5awn2a6i6n527xn"; + buildDepends = [ concatenative mtl parsec ]; + meta = { + homepage = "http://patch-tag.com/r/salazar/indents"; + description = "indentation sensitive parser-combinators for parsec"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index dd9ed825e0ce..c33495796ad6 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -724,6 +724,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); compactStringFix = callPackage ../development/libraries/haskell/compact-string-fix {}; + concatenative = callPackage ../development/libraries/haskell/concatenative {}; + conduit = callPackage ../development/libraries/haskell/conduit {}; ConfigFile = callPackage ../development/libraries/haskell/ConfigFile {}; @@ -901,6 +903,10 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); elerea = callPackage ../development/libraries/haskell/elerea {}; + Elm = callPackage ../development/compilers/elm/elm.nix {}; + + elmServer = callPackage ../development/compilers/elm/elm-server.nix {}; + emailValidate = callPackage ../development/libraries/haskell/email-validate {}; encoding = callPackage ../development/libraries/haskell/encoding {}; @@ -1263,6 +1269,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); ieee754 = callPackage ../development/libraries/haskell/ieee754 {}; + indents = callPackage ../development/libraries/haskell/indents {}; + instantGenerics = callPackage ../development/libraries/haskell/instant-generics {}; ioChoice = callPackage ../development/libraries/haskell/io-choice {};