aptly: use wrapProgram instead of propagatedUserEnvPkgs (#20622)

This commit is contained in:
montag451 2016-11-22 17:02:32 +01:00 committed by Franz Pletz
parent 9bcec8dcd0
commit 7d5abdca11

View File

@ -1,4 +1,4 @@
{ stdenv, buildGoPackage, fetchFromGitHub, gnupg1compat, bzip2, xz, graphviz }:
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, gnupg1compat, bzip2, xz, graphviz }:
buildGoPackage rec {
name = "aptly-${version}";
@ -15,12 +15,14 @@ buildGoPackage rec {
goPackagePath = "github.com/smira/aptly";
goDeps = ./deps.nix;
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
rm $bin/bin/man
wrapProgram "$bin/bin/aptly" \
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg1compat bzip2 xz graphviz ]}"
'';
propagatedUserEnvPkgs = [ gnupg1compat bzip2.bin xz.bin graphviz ];
meta = with stdenv.lib; {
homepage = https://www.aptly.info;
description = "Debian repository management tool";