43 lines
1009 B
Nix
43 lines
1009 B
Nix
# This file defines hackage-db-unstable, used by maintainers/scripts/haskell/regenerate-hackage-packages.sh.
|
|
{
|
|
mkDerivation,
|
|
aeson,
|
|
base,
|
|
bytestring,
|
|
Cabal,
|
|
containers,
|
|
directory,
|
|
exceptions,
|
|
fetchzip,
|
|
filepath,
|
|
lib,
|
|
tar,
|
|
time,
|
|
}:
|
|
mkDerivation {
|
|
pname = "hackage-db";
|
|
version = "2.1.3-unstable-2026-03-30";
|
|
src = fetchzip {
|
|
url = "https://github.com/NixOS/cabal2nix/archive/41239bcc0622a0975c6705a03a44dfeffeb56f23.tar.gz";
|
|
sha256 = "01qj6cvaif0810v83r6izcj1bbfpcqqxw4wybq04qsq92sqybpw2";
|
|
};
|
|
postUnpack = "sourceRoot+=/hackage-db; echo source root reset to $sourceRoot";
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
libraryHaskellDepends = [
|
|
aeson
|
|
base
|
|
bytestring
|
|
Cabal
|
|
containers
|
|
directory
|
|
exceptions
|
|
filepath
|
|
tar
|
|
time
|
|
];
|
|
homepage = "https://github.com/NixOS/cabal2nix/tree/master/hackage-db#readme";
|
|
description = "Access cabal-install's Hackage database via Data.Map";
|
|
license = lib.licensesSpdx."BSD-3-Clause";
|
|
}
|