forked from mirrors/nixpkgs
a5d046d007
See <https://github.com/sol/doctest-haskell/issues/69> for further details.
24 lines
750 B
Nix
24 lines
750 B
Nix
{ cabal, Cabal, doctest, filepath, hackageDb, HTTP, mtl, regexPosix
|
|
}:
|
|
|
|
cabal.mkDerivation (self: {
|
|
pname = "cabal2nix";
|
|
version = "1.56";
|
|
sha256 = "0sppg4ab62ql5hdd9cdhff4f5zy74si9h5rn3sqils0hwmxl86f8";
|
|
isLibrary = false;
|
|
isExecutable = true;
|
|
buildDepends = [ Cabal filepath hackageDb HTTP mtl regexPosix ];
|
|
testDepends = [ doctest ];
|
|
doCheck = self.stdenv.lib.versionOlder "7.6" self.ghc.version;
|
|
meta = {
|
|
homepage = "http://github.com/NixOS/cabal2nix";
|
|
description = "Convert Cabal files into Nix build instructions";
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
platforms = self.ghc.meta.platforms;
|
|
maintainers = [
|
|
self.stdenv.lib.maintainers.andres
|
|
self.stdenv.lib.maintainers.simons
|
|
];
|
|
};
|
|
})
|