Merge remote-tracking branch 'ni/master'

This commit is contained in:
lassulus 2023-08-01 13:46:22 +02:00
commit e1670d57f4
2 changed files with 13 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ pass, write, writeDash, ... }:
{ pass, runCommand, write, writeDash, ... }:
write "brain" {
"/bin/brain".link = writeDash "brain" ''
@ -9,4 +9,14 @@ write "brain" {
PASSWORD_STORE_DIR=$HOME/brain \
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
'';
}

View File

@ -2,12 +2,12 @@
stdenv.mkDerivation rec {
pname = "ircaids";
version = "1.3.0";
version = "1.4.1";
src = pkgs.fetchgit {
url = "https://cgit.krebsco.de/ircaids";
rev = "refs/tags/${version}";
sha256 = "128ryfl0prpc1789hhqw2mq16zy3jd82a24k6hkw7nj71hifzr3a";
hash = "sha256-j16RLB3dIiynQqcbcK52MFk/2vStQBp1xkSwKItSYCM=";
};
buildPhase = null;