uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
52
pkgs/applications/misc/memo/default.nix
Normal file
52
pkgs/applications/misc/memo/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ fetchFromGitHub, silver-searcher, tree, man, lib, stdenv,
|
||||
git,
|
||||
pandocSupport ? true, pandoc ? null
|
||||
, ... }:
|
||||
|
||||
assert pandocSupport -> pandoc != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
pname = "memo";
|
||||
|
||||
version = "0.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mrVanDalo";
|
||||
repo = "memo";
|
||||
rev = version;
|
||||
sha256 = "0azx2bx6y7j0637fg3m8zigcw09zfm2mw9wjfg218sx88cm1wdkp";
|
||||
};
|
||||
|
||||
installPhase = let
|
||||
pandocReplacement = if pandocSupport then
|
||||
"pandoc_cmd=${pandoc}/bin/pandoc"
|
||||
else
|
||||
"#pandoc_cmd=pandoc";
|
||||
in ''
|
||||
mkdir -p $out/{bin,share/man/man1,share/bash-completion/completions,share/zsh/site-functions}
|
||||
substituteInPlace memo \
|
||||
--replace "ack_cmd=ack" "ack_cmd=${silver-searcher}/bin/ag" \
|
||||
--replace "tree_cmd=tree" "tree_cmd=${tree}/bin/tree" \
|
||||
--replace "man_cmd=man" "man_cmd=${man}/bin/man" \
|
||||
--replace "git_cmd=git" "git_cmd=${git}/bin/git" \
|
||||
--replace "pandoc_cmd=pandoc" "${pandocReplacement}"
|
||||
mv memo $out/bin/
|
||||
mv doc/memo.1 $out/share/man/man1/memo.1
|
||||
mv completion/bash/memo.sh $out/share/bash-completion/completions/memo.sh
|
||||
mv completion/zsh/_memo $out/share/zsh/site-functions/_memo
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A simple tool written in bash to memorize stuff";
|
||||
longDescription = ''
|
||||
A simple tool written in bash to memorize stuff.
|
||||
Memo organizes is structured through topics which are folders in ~/memo.
|
||||
'';
|
||||
homepage = "http://palovandalo.com/memo/";
|
||||
downloadPage = "https://github.com/mrVanDalo/memo/releases";
|
||||
license = lib.licenses.gpl3;
|
||||
maintainers = [ lib.maintainers.mrVanDalo ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue