nixpkgs/pkgs/by-name/ch/changelog-d/package.nix
Silvan Mosberger ba90425948 changelog-d: fix build
Build failed (https://hydra.nixos.org/build/254972708/nixlog/2) with

    Error: Setup: Encountered missing or private dependencies:
    base >=4.11.1.0 && <4.12 || >=4.12.0.0 && <4.13 || >=4.13.0.0 && <4.14 ||
    >=4.14.0.0 && <4.15 || >=4.16.1.0 && <4.17 || >=4.17.0.0 && <4.18
2024-04-09 22:15:04 +02:00

40 lines
1013 B
Nix

{
callPackage,
lib,
haskell,
haskellPackages,
}:
let
hsPkg = haskellPackages.changelog-d;
addCompletions = haskellPackages.generateOptparseApplicativeCompletions ["changelog-d"];
haskellModifications =
lib.flip lib.pipe [
addCompletions
haskell.lib.doJailbreak
haskell.lib.justStaticExecutables
];
mkDerivationOverrides = finalAttrs: oldAttrs: {
version = oldAttrs.version + "-git-${lib.strings.substring 0 7 oldAttrs.src.rev}";
# nix-shell ./maintainers/scripts/update.nix --argstr package changelog-d
passthru.updateScript = lib.getExe (callPackage ./updateScript.nix { });
# nix-build -A changelog-d.tests
passthru.tests = {
basic = callPackage ./tests/basic.nix { changelog-d = finalAttrs.finalPackage; };
};
meta = oldAttrs.meta // {
homepage = "https://codeberg.org/fgaz/changelog-d";
maintainers = [ lib.maintainers.roberth ];
};
};
in
(haskellModifications hsPkg).overrideAttrs mkDerivationOverrides