memo: refactoring dependency paths

This commit is contained in:
Ingolf Wagner 2018-02-12 16:05:09 +13:00
parent b85f2eb367
commit 22fa6bbc6c
No known key found for this signature in database
GPG Key ID: 078056542458B6A2
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ fetchFromGitHub, ack , tree, stdenv, ... }:
{ fetchFromGitHub, ag, tree, stdenv, ... }:
stdenv.mkDerivation rec {
@ -15,6 +15,9 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/{bin,share/man/man1,share/bash-completion/completions}
substituteInPlace memo \
--replace "ack " "${ag}/bin/ag " \
--replace "tree " "${tree}/bin/tree "
mv memo $out/bin/
mv doc/memo.1 $out/share/man/man1/memo.1
mv completion/memo.bash $out/share/bash-completion/completions/memo.sh
@ -32,4 +35,4 @@ stdenv.mkDerivation rec {
maintainers = [ stdenv.lib.maintainers.mrVanDalo ];
platforms = stdenv.lib.platforms.all;
};
}
}