mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
4b8803dae6
gnupg is gnupg 2.2. gnupg1 is also gnupg 2.2, just with a few extra symlinks in the bin directory. None of these packages need those symlinks, and it's confusing for them to say they're depending on "gnupg1", so switch their dep to plain "gnupg".
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ stdenv, buildGoPackage, fetchFromGitHub, 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 {
|
|
name = "aptly-${version}";
|
|
|
|
src = aptlySrc;
|
|
|
|
goPackagePath = "github.com/aptly-dev/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 [ 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 ];
|
|
};
|
|
}
|