1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, makeWrapper, gnupg, bzip2, xz, graphviz, testers, aptly }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-LqGOLXXaGfQfoj2r+aY9SdOKUDI9+22EsHKBhHMidyk=";
14 vendorHash = "sha256-6l3OFKFTtFWT68Ylav6woczBlMhD75C9ZoQ6OeLz0Cs=";
16 nativeBuildInputs = [ installShellFiles makeWrapper ];
18 ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
21 installShellCompletion --bash --name aptly completion.d/aptly
22 installShellCompletion --zsh --name _aptly completion.d/_aptly
23 wrapProgram "$out/bin/aptly" \
24 --prefix PATH ":" "${lib.makeBinPath [ gnupg bzip2 xz graphviz ]}"
29 passthru.tests.version = testers.testVersion {
31 command = "aptly version";
35 homepage = "https://www.aptly.info";
36 description = "Debian repository management tool";
37 license = licenses.mit;
38 maintainers = with maintainers; [ montag451 ] ++ teams.bitnomial.members;
40 "https://github.com/aptly-dev/aptly/releases/tag/v${version}";
41 mainProgram = "aptly";