2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles, makeWrapper, gnupg, bzip2, xz, graphviz }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "1.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
aptlySrc = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "aptly-dev";
|
|
|
|
repo = "aptly";
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256 = "06cq761r3bxybb9xn58jii0ggp79mcp3810z1r2z3xcvplwhwnhy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-05-03 17:38:23 +00:00
|
|
|
installShellCompletion --bash ${aptlyCompletionSrc}/aptly
|
2020-05-15 21:57:56 +00:00
|
|
|
wrapProgram "$out/bin/aptly" \
|
2021-01-15 22:18:51 +00:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ gnupg bzip2 xz graphviz ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.aptly.info";
|
|
|
|
description = "Debian repository management tool";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.montag451 ];
|
|
|
|
};
|
|
|
|
}
|