nixpkgs/pkgs/tools/misc/aptly/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.2 KiB
Nix
Raw Normal View History

2022-08-24 16:59:27 +00:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, makeWrapper, gnupg, bzip2, xz, graphviz, testers, aptly }:
2016-11-21 01:01:37 +00:00
2022-08-24 16:59:27 +00:00
buildGoModule rec {
pname = "aptly";
version = "1.5.0";
2016-11-21 01:01:37 +00:00
2022-08-24 16:59:27 +00:00
src = fetchFromGitHub {
2019-02-20 12:11:53 +00:00
owner = "aptly-dev";
2016-11-21 01:01:37 +00:00
repo = "aptly";
2022-08-24 16:59:27 +00:00
rev = "v${version}";
sha256 = "sha256-LqGOLXXaGfQfoj2r+aY9SdOKUDI9+22EsHKBhHMidyk=";
2016-11-21 01:01:37 +00:00
};
vendorHash = "sha256-6l3OFKFTtFWT68Ylav6woczBlMhD75C9ZoQ6OeLz0Cs=";
2016-11-21 01:01:37 +00:00
2020-04-27 00:10:26 +00:00
nativeBuildInputs = [ installShellFiles makeWrapper ];
2022-08-24 16:59:27 +00:00
ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
2016-11-21 01:01:37 +00:00
postInstall = ''
2022-08-24 16:59:27 +00:00
installShellCompletion --bash --name aptly completion.d/aptly
installShellCompletion --zsh --name _aptly completion.d/_aptly
wrapProgram "$out/bin/aptly" \
2021-01-15 09:19:50 +00:00
--prefix PATH ":" "${lib.makeBinPath [ gnupg bzip2 xz graphviz ]}"
2016-11-21 01:01:37 +00:00
'';
2022-08-24 16:59:27 +00:00
doCheck = false;
passthru.tests.version = testers.testVersion {
package = aptly;
command = "aptly version";
};
meta = with lib; {
homepage = "https://www.aptly.info";
2016-11-21 01:01:37 +00:00
description = "Debian repository management tool";
license = licenses.mit;
maintainers = with maintainers; [ montag451 ] ++ teams.bitnomial.members;
2022-08-24 16:59:27 +00:00
changelog =
"https://github.com/aptly-dev/aptly/releases/tag/v${version}";
2023-11-27 01:17:53 +00:00
mainProgram = "aptly";
2016-11-21 01:01:37 +00:00
};
}