1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/aptly/default.nix
Ryan Mulligan 2e60ec7c86 aptly: 1.1.1 -> 1.2.0
Semi-automatic update; builds on NixOS
2018-02-24 15:18:15 -08:00

48 lines
1.1 KiB
Nix

{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, gnupg1compat, bzip2, xz, graphviz }:
let
version = "1.2.0";
rev = "v${version}";
aptlySrc = fetchFromGitHub {
inherit rev;
owner = "smira";
repo = "aptly";
sha256 = "1acnkmgarz9rp0skkh7zzwkhisjlmbl74jqjmqd3mn42y528c34b";
};
aptlyCompletionSrc = fetchFromGitHub {
rev = "1.0.1";
owner = "aptly-dev";
repo = "aptly-bash-completion";
sha256 = "0dkc4z687yk912lpv8rirv0nby7iny1zgdvnhdm5b47qmjr1sm5q";
};
in
buildGoPackage {
name = "aptly-${version}";
src = aptlySrc;
goPackagePath = "github.com/smira/aptly";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
mkdir -p $bin/share/bash-completion/completions
ln -s ${aptlyCompletionSrc}/aptly $bin/share/bash-completion/completions
wrapProgram "$bin/bin/aptly" \
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg1compat bzip2 xz graphviz ]}"
'';
meta = with stdenv.lib; {
homepage = https://www.aptly.info;
description = "Debian repository management tool";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.montag451 ];
};
}