Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
111 lines
1.9 KiB
Nix
111 lines
1.9 KiB
Nix
# This file defines cabal2nix-unstable, used by maintainers/scripts/haskell/regenerate-hackage-packages.sh.
|
|
{
|
|
mkDerivation,
|
|
aeson,
|
|
ansi-terminal,
|
|
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,
|
|
prettyprinter,
|
|
process,
|
|
split,
|
|
tasty,
|
|
tasty-golden,
|
|
text,
|
|
time,
|
|
transformers,
|
|
yaml,
|
|
}:
|
|
mkDerivation {
|
|
pname = "cabal2nix";
|
|
version = "2.20.1-unstable-2025-09-17";
|
|
src = fetchzip {
|
|
url = "https://github.com/NixOS/cabal2nix/archive/3cc36a5df16a10bac9a858208845e3d05b79845d.tar.gz";
|
|
sha256 = "1z1knv2ggm9ddyl0v120nhcnjmq50z7q1m88qj7rfz51gx1ifnim";
|
|
};
|
|
postUnpack = "sourceRoot+=/cabal2nix; echo source root reset to $sourceRoot";
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
libraryHaskellDepends = [
|
|
aeson
|
|
ansi-terminal
|
|
base
|
|
bytestring
|
|
Cabal
|
|
containers
|
|
deepseq
|
|
directory
|
|
distribution-nixpkgs
|
|
filepath
|
|
hackage-db
|
|
hopenssl
|
|
hpack
|
|
language-nix
|
|
lens
|
|
optparse-applicative
|
|
pretty
|
|
prettyprinter
|
|
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;
|
|
}
|