Skip to content

Commit

Permalink
aptly: use wrapProgram instead of propagatedUserEnvPkgs (#20622)
Browse files Browse the repository at this point in the history
  • Loading branch information
montag451 authored and fpletz committed Nov 22, 2016
1 parent 9bcec8d commit 7d5abdc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/tools/misc/aptly/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, buildGoPackage, fetchFromGitHub, gnupg1compat, bzip2, xz, graphviz }:
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, gnupg1compat, bzip2, xz, graphviz }:

buildGoPackage rec {
name = "aptly-${version}";
Expand All @@ -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";
Expand Down

0 comments on commit 7d5abdc

Please sign in to comment.