diff options
author | Alan Pearce | 2020-10-24 18:47:30 +0200 |
---|---|---|
committer | Alan Pearce | 2020-10-24 18:47:30 +0200 |
commit | 6f0a0e13eb0c3fd5ec3928d185220fd30cf79f01 (patch) | |
tree | 5bf53827cef4a754ff39c82f8d9452c3eafdf995 /user/packages/command-help | |
parent | 313e62e865b2c453b26b3739efac5c7eaf4ff49a (diff) | |
download | nixfiles-6f0a0e13eb0c3fd5ec3928d185220fd30cf79f01.tar.lz nixfiles-6f0a0e13eb0c3fd5ec3928d185220fd30cf79f01.tar.zst nixfiles-6f0a0e13eb0c3fd5ec3928d185220fd30cf79f01.zip |
zsh: package and install command-help
Diffstat (limited to 'user/packages/command-help')
-rw-r--r-- | user/packages/command-help/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/user/packages/command-help/default.nix b/user/packages/command-help/default.nix new file mode 100644 index 00000000..c3a22e6c --- /dev/null +++ b/user/packages/command-help/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, bash, gawk }: + +let + version = "2020-10-23"; +in +stdenv.mkDerivation +rec +{ + name = "command-help-unstable"; + src = fetchFromGitHub { + owner = "learnbyexample"; + repo = "command_help"; + sha256 = "1iyi7jivd0lan1f0w6ng4x6n61i3vsz0ls31xjnza3sqmzwld3s8"; + rev = "ee0b862a7b2fc70729d69d28e6a96c42b37b9fd3"; + # date = 2020-10-23T11:42:04+05:30; + }; + + dontBuild = true; + + installPhase = '' + mkdir -p $out/bin/ + cat <<EOF >$out/bin/ch + #!${bash}/bin/bash + PATH=${stdenv.lib.makeBinPath [gawk]}:\$PATH + set -eo + EOF + cat ch >> $out/bin/ch + chmod +x $out/bin/ch + ''; +} |