mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03: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
|
||||
|
||||
@ -29,11 +29,10 @@ buildGoPackage {
|
||||
|
||||
goPackagePath = "github.com/aptly-dev/aptly";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $bin/share/bash-completion/completions
|
||||
ln -s ${aptlyCompletionSrc}/aptly $bin/share/bash-completion/completions
|
||||
installShellCompletion --bash ${aptlyCompletionSrc}/aptly
|
||||
wrapProgram "$bin/bin/aptly" \
|
||||
--prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg bzip2 xz graphviz ]}"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user