hnix/default.nix

25 lines
605 B
Nix

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