Merge remote-tracking branch 'ni/master'
This commit is contained in:
commit
e1670d57f4
@ -1,4 +1,4 @@
|
|||||||
{ pass, write, writeDash, ... }:
|
{ pass, runCommand, write, writeDash, ... }:
|
||||||
|
|
||||||
write "brain" {
|
write "brain" {
|
||||||
"/bin/brain".link = writeDash "brain" ''
|
"/bin/brain".link = writeDash "brain" ''
|
||||||
@ -9,4 +9,14 @@ write "brain" {
|
|||||||
PASSWORD_STORE_DIR=$HOME/brain \
|
PASSWORD_STORE_DIR=$HOME/brain \
|
||||||
exec ${pass}/bin/passmenu $@
|
exec ${pass}/bin/passmenu $@
|
||||||
'';
|
'';
|
||||||
|
"/share/bash-completion/completions/brain".link =
|
||||||
|
runCommand "brain-completions" {
|
||||||
|
} /* sh */ ''
|
||||||
|
sed -r '
|
||||||
|
s/\<_pass?(_|\>)/_brain\1/g
|
||||||
|
s/\<__password_store/_brain/g
|
||||||
|
s/\<pass\>/brain/
|
||||||
|
s/\$HOME\/\.password-store/$HOME\/brain/
|
||||||
|
' < ${pass}/share/bash-completion/completions/pass > $out
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ircaids";
|
pname = "ircaids";
|
||||||
version = "1.3.0";
|
version = "1.4.1";
|
||||||
|
|
||||||
src = pkgs.fetchgit {
|
src = pkgs.fetchgit {
|
||||||
url = "https://cgit.krebsco.de/ircaids";
|
url = "https://cgit.krebsco.de/ircaids";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "128ryfl0prpc1789hhqw2mq16zy3jd82a24k6hkw7nj71hifzr3a";
|
hash = "sha256-j16RLB3dIiynQqcbcK52MFk/2vStQBp1xkSwKItSYCM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildPhase = null;
|
buildPhase = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user