aptly: use wrapProgram instead of propagatedUserEnvPkgs (#20622)
This commit is contained in:
parent
9bcec8dcd0
commit
7d5abdca11
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub, gnupg1compat, bzip2, xz, graphviz }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, gnupg1compat, bzip2, xz, graphviz }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "aptly-${version}";
|
name = "aptly-${version}";
|
||||||
@ -15,12 +15,14 @@ buildGoPackage rec {
|
|||||||
goPackagePath = "github.com/smira/aptly";
|
goPackagePath = "github.com/smira/aptly";
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
rm $bin/bin/man
|
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; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://www.aptly.info;
|
homepage = https://www.aptly.info;
|
||||||
description = "Debian repository management tool";
|
description = "Debian repository management tool";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user