git.iko.soy/typeable/nixpkgs
on master help sign in
bash-preexec: init at 0.4.1
commitbb46e4f6fb5fb8ff80753a27585daa6f1c50b797 authorRobert Helgesson <robert@rycee.net> dateThu 16 Sep 2021, 00:03 (5 years ago) parent40713f7
3 files changed+51
maintainers/maintainer-list.nix+6 pkgs/development/libraries/bash/bash-preexec/default.nix+41 pkgs/top-level/all-packages.nix+4
maintainers/maintainer-list.nix+6
@@ -4287,6 +4287,12 @@
42874287 githubId = 731722;
42884288 name = "Ryan Scheel";
42894289 };
4290+ hawkw = {
4291+ email = "eliza@elizas.website";
4292+ github = "hawkw";
4293+ githubId = 2796466;
4294+ name = "Eliza Weisman";
4295+ };
42904296 hax404 = {
42914297 email = "hax404foogit@hax404.de";
42924298 github = "hax404";
pkgs/development/libraries/bash/bash-preexec/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{ stdenvNoCC, lib, fetchFromGitHub, bats }:
2+
3+let version = "0.4.1";
4+in stdenvNoCC.mkDerivation {
5+ pname = "bash-preexec";
6+ inherit version;
7+
8+ src = fetchFromGitHub {
9+ owner = "rcaloras";
10+ repo = "bash-preexec";
11+ rev = version;
12+ sha256 = "062iigps285628p710i7vh7kmgra5gahq9qiwj7rxir167lg0ggw";
13+ };
14+
15+ checkInputs = [ bats ];
16+
17+ dontConfigure = true;
18+ doCheck = true;
19+ dontBuild = true;
20+
21+ patchPhase = ''
22+ # Needed since the tests expect that HISTCONTROL is set.
23+ sed -i '/setup()/a HISTCONTROL=""' test/bash-preexec.bats
24+ '';
25+
26+ checkPhase = ''
27+ bats test
28+ '';
29+
30+ installPhase = ''
31+ install -Dm755 $src/bash-preexec.sh $out/share/bash/bash-preexec.sh
32+ '';
33+
34+ meta = with lib; {
35+ description = "preexec and precmd functions for Bash just like Zsh";
36+ license = licenses.mit;
37+ homepage = "https://github.com/rcaloras/bash-preexec";
38+ maintainers = [ maintainers.hawkw maintainers.rycee ];
39+ platforms = platforms.unix;
40+ };
41+}
pkgs/top-level/all-packages.nix+4
@@ -19581,6 +19581,10 @@ with pkgs;
1958119581 };
1958219582 agda = agdaPackages.agda;
1958319583
19584+ ### DEVELOPMENT / LIBRARIES / BASH
19585+
19586+ bash-preexec = callPackage ../development/libraries/bash/bash-preexec { };
19587+
1958419588 ### DEVELOPMENT / LIBRARIES / JAVA
1958519589
1958619590 commonsBcel = callPackage ../development/libraries/java/commons/bcel { };