diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2017-07-16 13:41:35 +0200 |
---|---|---|
committer | Joachim F <joachifm@users.noreply.github.com> | 2017-07-16 12:41:35 +0100 |
commit | 4d30116c9efdd2a08dc06b229e768c33225bb368 (patch) | |
tree | 6cad1556ea869efbe494ddd9404a377e47d31bf4 /pkgs/applications/misc/bashSnippets | |
parent | b57bf746a190eef648e62da1828273acc12f0d0c (diff) | |
download | nixlib-4d30116c9efdd2a08dc06b229e768c33225bb368.tar nixlib-4d30116c9efdd2a08dc06b229e768c33225bb368.tar.gz nixlib-4d30116c9efdd2a08dc06b229e768c33225bb368.tar.bz2 nixlib-4d30116c9efdd2a08dc06b229e768c33225bb368.tar.lz nixlib-4d30116c9efdd2a08dc06b229e768c33225bb368.tar.xz nixlib-4d30116c9efdd2a08dc06b229e768c33225bb368.tar.zst nixlib-4d30116c9efdd2a08dc06b229e768c33225bb368.zip |
bashSnippets: init at 1.12.0 (#27408)
Diffstat (limited to 'pkgs/applications/misc/bashSnippets')
-rw-r--r-- | pkgs/applications/misc/bashSnippets/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/applications/misc/bashSnippets/default.nix b/pkgs/applications/misc/bashSnippets/default.nix new file mode 100644 index 000000000000..542450080fea --- /dev/null +++ b/pkgs/applications/misc/bashSnippets/default.nix @@ -0,0 +1,49 @@ +{ stdenv, lib, fetchFromGitHub, makeWrapper +, curl, netcat, mpv, python, bind, iproute, bc, gitMinimal }: +let + version = "1.12.0"; + deps = lib.makeBinPath [ + curl + mpv + python + bind.dnsutils + iproute + bc + gitMinimal + ]; +in +stdenv.mkDerivation { + name = "bashSnippets-${version}"; + + src = fetchFromGitHub { + owner = "alexanderepstein"; + repo = "Bash-Snippets"; + rev = "v${version}"; + sha256 = "0kx2a8z3jbmmardw9z8fpghbw5mrbz4knb3wdihq35iarcbrddrg"; + }; + + buildInputs = [ makeWrapper ]; + + patchPhase = '' + patchShebangs install.sh + substituteInPlace install.sh --replace /usr/local "$out" + ''; + + dontBuild = true; + + installPhase = '' + mkdir -p "$out"/bin "$out"/man/man1 + ./install.sh all + for file in "$out"/bin/*; do + wrapProgram "$file" --prefix PATH : "${deps}" + done + ''; + + meta = with lib; { + description = "A collection of small bash scripts for heavy terminal users"; + homepage = https://github.com/alexanderepstein/Bash-Snippets; + license = licenses.mit; + maintainers = with maintainers; [ infinisil ]; + platforms = platforms.unix; + }; +} |