From 60ecd42514d313f3801a921f370a85f40f22a76c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 10 Jan 2015 10:03:53 +0100 Subject: [PATCH] haskell-ng: add current Git version of cabal2nix to the package set nix-env -iA haskellPackages.cabal2nix ==> 1.x branch nix-env -iA haskellngPackages.cabal2nix ==> 2.x branch --- .../haskell-modules/configuration-common.nix | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 80d4e341694..4e648732bc0 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -389,3 +389,26 @@ self: super: { }); } +// { + # Not on Hackage yet. + cabal2nix = self.mkDerivation { + pname = "cabal2nix"; + version = "2.0"; + src = pkgs.fetchgit { + url = "git://github.com/NixOS/cabal2nix.git"; + sha256 = "95a5d40a8c23f01f99c3c537f8d9807f47b30667e0c87caca2705c4c75ba36ff"; + rev = "ba140f1e5cb0cd2322a29c5261828747b4e9ddb0"; + }; + isLibrary = false; + isExecutable = true; + buildDepends = with self; [ + aeson base bytestring Cabal containers deepseq directory filepath + hackage-db monad-par monad-par-extras mtl pretty process + regex-posix SHA split transformers utf8-string + ]; + testDepends = with self; [ base doctest ]; + homepage = "http://github.com/NixOS/cabal2nix"; + description = "Convert Cabal files into Nix build instructions"; + license = pkgs.stdenv.lib.licenses.bsd3; + }; +}