36 lines
1.3 KiB
Nix
36 lines
1.3 KiB
Nix
{ mkDerivation, aeson, ansi-wl-pprint, base, bytestring, Cabal
|
|
, containers, deepseq, directory, distribution-nixpkgs, filepath
|
|
, hackage-db, hopenssl, hpack, language-nix, lens, lib, monad-par
|
|
, monad-par-extras, mtl, optparse-applicative, pretty, process
|
|
, split, tasty, tasty-golden, text, time, transformers, yaml
|
|
}:
|
|
mkDerivation {
|
|
pname = "cabal2nix";
|
|
version = "2.18.0";
|
|
sha256 = "4b90602dc0878c2e4a3e7def2c2ae0e99782b2f0d53d8e3914adaa43038b1f86";
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
libraryHaskellDepends = [
|
|
aeson ansi-wl-pprint base bytestring Cabal containers deepseq
|
|
directory distribution-nixpkgs filepath hackage-db hopenssl hpack
|
|
language-nix lens optparse-applicative pretty process split text
|
|
time transformers yaml
|
|
];
|
|
executableHaskellDepends = [
|
|
aeson base bytestring Cabal containers directory
|
|
distribution-nixpkgs filepath hopenssl language-nix lens monad-par
|
|
monad-par-extras mtl optparse-applicative pretty
|
|
];
|
|
testHaskellDepends = [
|
|
base Cabal containers directory filepath language-nix lens pretty
|
|
process tasty tasty-golden
|
|
];
|
|
preCheck = ''
|
|
export PATH="$PWD/dist/build/cabal2nix:$PATH"
|
|
export HOME="$TMPDIR/home"
|
|
'';
|
|
homepage = "https://github.com/nixos/cabal2nix#readme";
|
|
description = "Convert Cabal files into Nix build instructions";
|
|
license = lib.licenses.bsd3;
|
|
}
|