fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
33 lines
739 B
Nix
33 lines
739 B
Nix
{
|
|
callPackage,
|
|
lib,
|
|
haskell,
|
|
haskellPackages,
|
|
}:
|
|
|
|
let
|
|
hsPkg = haskellPackages.changelog-d;
|
|
|
|
addCompletions = haskellPackages.generateOptparseApplicativeCompletions ["changelog-d"];
|
|
|
|
haskellModifications =
|
|
lib.flip lib.pipe [
|
|
addCompletions
|
|
haskell.lib.justStaticExecutables
|
|
];
|
|
|
|
mkDerivationOverrides = finalAttrs: oldAttrs: {
|
|
|
|
# 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
|