2016-11-22 16:02:32 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, gnupg1compat, bzip2, xz, graphviz }:
|
2016-11-21 01:01:37 +00:00
|
|
|
|
2016-12-10 16:27:55 +00:00
|
|
|
let
|
|
|
|
|
2017-09-05 12:04:05 +01:00
|
|
|
version = "1.1.1";
|
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;
|
|
|
|
owner = "smira";
|
|
|
|
repo = "aptly";
|
2017-09-05 12:04:05 +01:00
|
|
|
sha256 = "197a7nh8li20slqxgn8s8xm13x5b8ansmabk8rx32sngb73hp4av";
|
2016-11-21 01:01:37 +00:00
|
|
|
};
|
|
|
|
|
2016-12-10 16:27:55 +00:00
|
|
|
aptlyCompletionSrc = fetchFromGitHub {
|
2017-09-05 12:04:05 +01:00
|
|
|
rev = "1.0.1";
|
2016-12-10 16:27:55 +00:00
|
|
|
owner = "aptly-dev";
|
|
|
|
repo = "aptly-bash-completion";
|
2017-06-20 04:06:03 +01:00
|
|
|
sha256 = "0dkc4z687yk912lpv8rirv0nby7iny1zgdvnhdm5b47qmjr1sm5q";
|
2016-12-10 16:27:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
buildGoPackage {
|
|
|
|
name = "aptly-${version}";
|
|
|
|
|
|
|
|
src = aptlySrc;
|
|
|
|
|
2016-11-21 01:01:37 +00:00
|
|
|
goPackagePath = "github.com/smira/aptly";
|
|
|
|
|
2016-11-22 16:02:32 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2016-11-21 01:01:37 +00:00
|
|
|
postInstall = ''
|
2016-12-10 16:27:55 +00:00
|
|
|
mkdir -p $bin/share/bash-completion/completions
|
|
|
|
ln -s ${aptlyCompletionSrc}/aptly $bin/share/bash-completion/completions
|
2016-11-22 16:02:32 +00:00
|
|
|
wrapProgram "$bin/bin/aptly" \
|
|
|
|
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg1compat bzip2 xz graphviz ]}"
|
2016-11-21 01:01:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://www.aptly.info;
|
|
|
|
description = "Debian repository management tool";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.montag451 ];
|
|
|
|
};
|
|
|
|
}
|