tv: pass-otp -> pass.withExtensions

This commit is contained in:
tv 2022-05-31 19:14:09 +02:00
parent 87ca8682ce
commit 65a7b6bf03
2 changed files with 27 additions and 24 deletions

View File

@ -45,7 +45,9 @@ with import <stockholm/lib>;
netcup netcup
nmap nmap
p7zip p7zip
pass-otp (pkgs.pass.withExtensions (ext: [
ext.pass-otp
]))
q q
qrencode qrencode
texlive.combined.scheme-full texlive.combined.scheme-full

View File

@ -1,37 +1,38 @@
{ lib, stdenv { lib, pkgs, stdenv }:
, runCommand
, coreutils, dash, gnused, fzf, pass-otp, rxvt_unicode, utillinux, xdotool
}:
runCommand "fzmenu" { pkgs.runCommand "fzmenu" {
} /* sh */ '' } /* sh */ ''
mkdir $out mkdir $out
cp -r ${./bin} $out/bin cp -r ${./bin} $out/bin
substituteInPlace $out/bin/otpmenu \ substituteInPlace $out/bin/otpmenu \
--replace '#! /bin/sh' '#! ${dash}/bin/dash' \ --replace '#! /bin/sh' '#! ${pkgs.dash}/bin/dash' \
--replace '#PATH=' PATH=${lib.makeBinPath [ --replace '#PATH=' PATH=${lib.makeBinPath [
coreutils pkgs.coreutils
dash pkgs.dash
fzf pkgs.fzf
gnused pkgs.gnused
pass-otp (pkgs.pass.withExtensions (ext: [
rxvt_unicode ext.pass-otp
utillinux ]))
xdotool pkgs.rxvt_unicode
pkgs.utillinux
pkgs.xdotool
]} ]}
substituteInPlace $out/bin/passmenu \ substituteInPlace $out/bin/passmenu \
--replace '#! /bin/sh' '#! ${dash}/bin/dash' \ --replace '#! /bin/sh' '#! ${pkgs.dash}/bin/dash' \
--replace '#PATH=' PATH=${lib.makeBinPath [ --replace '#PATH=' PATH=${lib.makeBinPath [
coreutils pkgs.coreutils
dash pkgs.dash
fzf pkgs.fzf
gnused pkgs.gnused
pass-otp (pkgs.pass.withExtensions (ext: [
rxvt_unicode ext.pass-otp
utillinux ]))
xdotool pkgs.rxvt_unicode
pkgs.utillinux
pkgs.xdotool
]} ]}
'' ''