From 7848f96b5824597965bba4acaf5c404cafe1d472 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 5 May 2014 19:48:50 -0500 Subject: [PATCH] Add an expression for the Haskell library djinn --- .../libraries/haskell/djinn/default.nix | 19 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/libraries/haskell/djinn/default.nix diff --git a/pkgs/development/libraries/haskell/djinn/default.nix b/pkgs/development/libraries/haskell/djinn/default.nix new file mode 100644 index 000000000000..6e8a52bb78b0 --- /dev/null +++ b/pkgs/development/libraries/haskell/djinn/default.nix @@ -0,0 +1,19 @@ +{ cabal, haskeline, mtl }: + +cabal.mkDerivation (self: { + pname = "djinn"; + version = "2011.7.23"; + sha256 = "14748pqzrd1r9jg2vc9v232pi38q99l9zdlia6ashm2v871hp1xv"; + isLibrary = false; + isExecutable = true; + buildDepends = [ haskeline mtl ]; + preConfigure = self.stdenv.lib.optionalString self.stdenv.isDarwin '' + sed -i 's/-Wall -optl-Wl/-Wall/' djinn.cabal + ''; + meta = { + homepage = "http://www.augustsson.net/Darcs/Djinn/"; + description = "Generate Haskell code from a type"; + 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 1810dca6c0e1..40c10e76daaa 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1008,6 +1008,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x distributive = callPackage ../development/libraries/haskell/distributive {}; + djinn = callPackage ../development/libraries/haskell/djinn {}; + dlist = callPackage ../development/libraries/haskell/dlist {}; dlistInstances = callPackage ../development/libraries/haskell/dlist-instances {};