mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
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 {
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user