hnix/default.nix

23 lines
567 B
Nix
Raw Normal View History

{ cabal, parsers, trifecta, text, ansiWlPprint, parsec, transformers
, useParsec ? false
}:
2014-06-29 01:30:47 +02:00
cabal.mkDerivation (self: rec {
pname = "hnix";
version = "0.0.1";
2014-06-29 01:30:47 +02:00
src = ./.;
isLibrary = true;
isExecutable = true;
2014-06-29 01:30:47 +02:00
buildDepends = [
ansiWlPprint
2014-06-29 01:30:47 +02:00
text
transformers
] ++ (if useParsec then [ parsec ] else [ parsers trifecta ]);
2014-06-29 01:30:47 +02:00
meta = {
homepage = "https://github.com/jwiegley/hnix";
description = "Haskell implementation of the Nix language";
2014-06-29 01:30:47 +02:00
license = self.stdenv.lib.licenses.bsd3;
platforms = self.ghc.meta.platforms;
};
})