depot/third_party/nixpkgs/pkgs/tools/misc/aptly/default.nix
Default email 66604c92c1 Project import generated by Copybara.
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
2020-05-15 23:57:56 +02:00

47 lines
1.1 KiB
Nix

{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles, makeWrapper, gnupg, bzip2, xz, graphviz }:
let
version = "1.3.0";
rev = "v${version}";
aptlySrc = fetchFromGitHub {
inherit rev;
owner = "aptly-dev";
repo = "aptly";
sha256 = "032gw8qkxcgc0jyrvzqh7jkbmk4k0gf7j74hyhclfnjmd9548f5l";
};
aptlyCompletionSrc = fetchFromGitHub {
rev = "1.0.1";
owner = "aptly-dev";
repo = "aptly-bash-completion";
sha256 = "0dkc4z687yk912lpv8rirv0nby7iny1zgdvnhdm5b47qmjr1sm5q";
};
in
buildGoPackage {
pname = "aptly";
inherit version;
src = aptlySrc;
goPackagePath = "github.com/aptly-dev/aptly";
nativeBuildInputs = [ installShellFiles makeWrapper ];
postInstall = ''
installShellCompletion --bash ${aptlyCompletionSrc}/aptly
wrapProgram "$out/bin/aptly" \
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg bzip2 xz graphviz ]}"
'';
meta = with stdenv.lib; {
homepage = "https://www.aptly.info";
description = "Debian repository management tool";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.montag451 ];
};
}