Files
nixpkgs/pkgs/by-name/ap/aptly/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.4 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
installShellFiles,
makeWrapper,
gnupg,
bzip2,
xz,
graphviz,
testers,
aptly,
}:
buildGoModule (finalAttrs: {
pname = "aptly";
version = "1.6.2";
src = fetchFromGitHub {
owner = "aptly-dev";
repo = "aptly";
tag = "v${finalAttrs.version}";
hash = "sha256-Jkljg05C4GJ4F9l6mKAU4JCH8I0/bjzfb74X714z4UI=";
};
vendorHash = "sha256-3pFVAVvIpJut2YYxvnCQbBpdwwmUbZIyrx0WoQrU+nQ=";
nativeBuildInputs = [
installShellFiles
makeWrapper
];
ldflags = [
"-s"
"-w"
];
preBuild = ''
echo ${finalAttrs.version} > VERSION
'';
postInstall = ''
installShellCompletion --bash --name aptly completion.d/aptly
installShellCompletion --zsh --name _aptly completion.d/_aptly
wrapProgram $out/bin/aptly \
--prefix PATH : ${
lib.makeBinPath [
gnupg
bzip2
xz
graphviz
]
}
'';
doCheck = false;
passthru.tests.version = testers.testVersion {
package = aptly;
command = "aptly version";
};
meta = {
homepage = "https://www.aptly.info";
description = "Debian repository management tool";
license = lib.licenses.mit;
changelog = "https://github.com/aptly-dev/aptly/releases/tag/v${finalAttrs.version}";
maintainers = [ lib.maintainers.montag451 ];
teams = [ lib.teams.bitnomial ];
mainProgram = "aptly";
};
})