mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
aptly: use installShellFiles
This commit is contained in:
parent
bd6b2318c3
commit
b83b2591dd
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, gnupg, bzip2, xz, graphviz }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles, makeWrapper, gnupg, bzip2, xz, graphviz }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
@ -29,11 +29,10 @@ buildGoPackage {
|
|||||||
|
|
||||||
goPackagePath = "github.com/aptly-dev/aptly";
|
goPackagePath = "github.com/aptly-dev/aptly";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $bin/share/bash-completion/completions
|
installShellCompletion --bash ${aptlyCompletionSrc}/aptly
|
||||||
ln -s ${aptlyCompletionSrc}/aptly $bin/share/bash-completion/completions
|
|
||||||
wrapProgram "$bin/bin/aptly" \
|
wrapProgram "$bin/bin/aptly" \
|
||||||
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg bzip2 xz graphviz ]}"
|
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg bzip2 xz graphviz ]}"
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user