diff options
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 + ''; +} |