2021-06-01 22:27:17 +00:00
|
|
|
{ lib, stdenv
|
|
|
|
, runCommand
|
|
|
|
, coreutils, dash, gnused, fzf, pass-otp, rxvt_unicode, utillinux, xdotool
|
|
|
|
}:
|
2018-11-28 08:20:25 +00:00
|
|
|
|
|
|
|
runCommand "fzmenu" {
|
|
|
|
} /* sh */ ''
|
|
|
|
mkdir $out
|
|
|
|
|
|
|
|
cp -r ${./bin} $out/bin
|
|
|
|
|
|
|
|
substituteInPlace $out/bin/otpmenu \
|
|
|
|
--replace '#! /bin/sh' '#! ${dash}/bin/dash' \
|
2021-06-01 22:27:17 +00:00
|
|
|
--replace '#PATH=' PATH=${lib.makeBinPath [
|
2018-11-28 08:20:25 +00:00
|
|
|
coreutils
|
|
|
|
dash
|
|
|
|
fzf
|
|
|
|
gnused
|
2020-11-17 22:07:38 +00:00
|
|
|
pass-otp
|
2018-11-28 08:20:25 +00:00
|
|
|
rxvt_unicode
|
|
|
|
utillinux
|
|
|
|
xdotool
|
|
|
|
]}
|
|
|
|
|
|
|
|
substituteInPlace $out/bin/passmenu \
|
|
|
|
--replace '#! /bin/sh' '#! ${dash}/bin/dash' \
|
2021-06-01 22:27:17 +00:00
|
|
|
--replace '#PATH=' PATH=${lib.makeBinPath [
|
2018-11-28 08:20:25 +00:00
|
|
|
coreutils
|
|
|
|
dash
|
|
|
|
fzf
|
|
|
|
gnused
|
2020-11-17 22:07:38 +00:00
|
|
|
pass-otp
|
2018-11-28 08:20:25 +00:00
|
|
|
rxvt_unicode
|
|
|
|
utillinux
|
|
|
|
xdotool
|
|
|
|
]}
|
|
|
|
''
|