2021-05-04 11:38:29 +00:00
|
|
|
# This file defines cabal2nix-unstable, used by maintainers/scripts/haskell/regenerate-hackage-packages.sh.
|
2020-05-03 23:01:57 +00:00
|
|
|
{ mkDerivation, aeson, ansi-wl-pprint, base, bytestring, Cabal
|
|
|
|
, containers, deepseq, directory, distribution-nixpkgs, fetchzip
|
|
|
|
, 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";
|
2021-06-11 22:36:30 +00:00
|
|
|
version = "unstable-2021-06-12";
|
2020-05-03 23:01:57 +00:00
|
|
|
src = fetchzip {
|
2021-06-12 17:20:47 +00:00
|
|
|
url = "https://github.com/NixOS/cabal2nix/archive/01feffa0aeee835504e0c0ccf4bca2e33a698252.tar.gz";
|
|
|
|
sha256 = "0clckh0qqvjcb8szy1d6qqlxj6sqp28jc2p3vhzhkf95cv491si9";
|
2020-05-03 23:01:57 +00:00
|
|
|
};
|
|
|
|
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;
|
|
|
|
}
|