2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildGoPackage, fetchFromGitHub, installShellFiles, makeWrapper, gnupg, bzip2, xz, graphviz }:
|
2016-11-21 01:01:37 +00:00
|
|
|
|
2016-12-10 16:27:55 +00:00
|
|
|
let
|
|
|
|
|
2020-10-28 15:17:28 +00:00
|
|
|
version = "1.4.0";
|
2016-11-21 01:01:37 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
|
2016-12-10 16:27:55 +00:00
|
|
|
aptlySrc = fetchFromGitHub {
|
2016-11-21 01:01:37 +00:00
|
|
|
inherit rev;
|
2019-02-20 12:11:53 +00:00
|
|
|
owner = "aptly-dev";
|
2016-11-21 01:01:37 +00:00
|
|
|
repo = "aptly";
|
2020-10-28 15:17:28 +00:00
|
|
|
sha256 = "06cq761r3bxybb9xn58jii0ggp79mcp3810z1r2z3xcvplwhwnhy";
|
2016-11-21 01:01:37 +00:00
|
|
|
};
|
|
|
|
|
2016-12-10 16:27:55 +00:00
|
|
|
aptlyCompletionSrc = fetchFromGitHub {
|
2017-09-05 11:04:05 +00:00
|
|
|
rev = "1.0.1";
|
2016-12-10 16:27:55 +00:00
|
|
|
owner = "aptly-dev";
|
|
|
|
repo = "aptly-bash-completion";
|
2017-06-20 03:06:03 +00:00
|
|
|
sha256 = "0dkc4z687yk912lpv8rirv0nby7iny1zgdvnhdm5b47qmjr1sm5q";
|
2016-12-10 16:27:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
buildGoPackage {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "aptly";
|
|
|
|
inherit version;
|
2016-12-10 16:27:55 +00:00
|
|
|
|
|
|
|
src = aptlySrc;
|
|
|
|
|
2019-02-20 12:11:53 +00:00
|
|
|
goPackagePath = "github.com/aptly-dev/aptly";
|
2016-11-21 01:01:37 +00:00
|
|
|
|
2020-04-27 00:10:26 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
2016-11-22 16:02:32 +00:00
|
|
|
|
2016-11-21 01:01:37 +00:00
|
|
|
postInstall = ''
|
2020-04-27 00:10:26 +00:00
|
|
|
installShellCompletion --bash ${aptlyCompletionSrc}/aptly
|
2020-04-28 01:50:57 +00:00
|
|
|
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
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.aptly.info";
|
2016-11-21 01:01:37 +00:00
|
|
|
description = "Debian repository management tool";
|
|
|
|
license = licenses.mit;
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2016-11-21 01:01:37 +00:00
|
|
|
maintainers = [ maintainers.montag451 ];
|
|
|
|
};
|
|
|
|
}
|