bash-preexec: init at 0.4.1
This commit is contained in:
parent
40713f7686
commit
bb46e4f6fb
|
@ -4287,6 +4287,12 @@
|
||||||
githubId = 731722;
|
githubId = 731722;
|
||||||
name = "Ryan Scheel";
|
name = "Ryan Scheel";
|
||||||
};
|
};
|
||||||
|
hawkw = {
|
||||||
|
email = "eliza@elizas.website";
|
||||||
|
github = "hawkw";
|
||||||
|
githubId = 2796466;
|
||||||
|
name = "Eliza Weisman";
|
||||||
|
};
|
||||||
hax404 = {
|
hax404 = {
|
||||||
email = "hax404foogit@hax404.de";
|
email = "hax404foogit@hax404.de";
|
||||||
github = "hax404";
|
github = "hax404";
|
||||||
|
|
41
pkgs/development/libraries/bash/bash-preexec/default.nix
Normal file
41
pkgs/development/libraries/bash/bash-preexec/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ stdenvNoCC, lib, fetchFromGitHub, bats }:
|
||||||
|
|
||||||
|
let version = "0.4.1";
|
||||||
|
in stdenvNoCC.mkDerivation {
|
||||||
|
pname = "bash-preexec";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "rcaloras";
|
||||||
|
repo = "bash-preexec";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "062iigps285628p710i7vh7kmgra5gahq9qiwj7rxir167lg0ggw";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [ bats ];
|
||||||
|
|
||||||
|
dontConfigure = true;
|
||||||
|
doCheck = true;
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
# Needed since the tests expect that HISTCONTROL is set.
|
||||||
|
sed -i '/setup()/a HISTCONTROL=""' test/bash-preexec.bats
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
bats test
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -Dm755 $src/bash-preexec.sh $out/share/bash/bash-preexec.sh
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "preexec and precmd functions for Bash just like Zsh";
|
||||||
|
license = licenses.mit;
|
||||||
|
homepage = "https://github.com/rcaloras/bash-preexec";
|
||||||
|
maintainers = [ maintainers.hawkw maintainers.rycee ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
|
@ -19581,6 +19581,10 @@ with pkgs;
|
||||||
};
|
};
|
||||||
agda = agdaPackages.agda;
|
agda = agdaPackages.agda;
|
||||||
|
|
||||||
|
### DEVELOPMENT / LIBRARIES / BASH
|
||||||
|
|
||||||
|
bash-preexec = callPackage ../development/libraries/bash/bash-preexec { };
|
||||||
|
|
||||||
### DEVELOPMENT / LIBRARIES / JAVA
|
### DEVELOPMENT / LIBRARIES / JAVA
|
||||||
|
|
||||||
commonsBcel = callPackage ../development/libraries/java/commons/bcel { };
|
commonsBcel = callPackage ../development/libraries/java/commons/bcel { };
|
||||||
|
|
Loading…
Reference in a new issue