1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

Add c2hsc to haskell-packages.nix

This commit is contained in:
John Wiegley 2014-04-11 10:34:56 -05:00
parent e2bc9a3d14
commit 8026caec43
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ cabal, cmdargs, filepath, HStringTemplate, languageC, mtl, split
, transformers
}:
cabal.mkDerivation (self: {
pname = "c2hsc";
version = "0.6.5";
sha256 = "0c5hzi4nw9n3ir17swbwymkymnpiw958z8r2hw6656ijwqkxvzgd";
isLibrary = false;
isExecutable = true;
buildDepends = [
cmdargs filepath HStringTemplate languageC mtl split transformers
];
meta = {
homepage = "https://github.com/jwiegley/c2hsc";
description = "Convert C API header files to .hsc and .hsc.helper.c files";
license = self.stdenv.lib.licenses.bsd3;
platforms = self.ghc.meta.platforms;
};
})

View file

@ -707,6 +707,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x
c2hs = callPackage ../development/libraries/haskell/c2hs {};
c2hsc = callPackage ../development/libraries/haskell/c2hsc {};
Cabal_1_14_0 = callPackage ../development/libraries/haskell/Cabal/1.14.0.nix { cabal = self.cabal.override { Cabal = null; }; };
Cabal_1_16_0_3 = callPackage ../development/libraries/haskell/Cabal/1.16.0.3.nix { cabal = self.cabal.override { Cabal = null; }; };
Cabal_1_18_1_3 = callPackage ../development/libraries/haskell/Cabal/1.18.1.3.nix { cabal = self.cabal.override { Cabal = null; }; };