ea902ce405
Deprecated since nixpkgs 21.05
38 lines
750 B
Nix
38 lines
750 B
Nix
{ lib, stdenv
|
|
, runCommand
|
|
, coreutils, dash, gnused, fzf, pass-otp, rxvt_unicode, utillinux, xdotool
|
|
}:
|
|
|
|
runCommand "fzmenu" {
|
|
} /* sh */ ''
|
|
mkdir $out
|
|
|
|
cp -r ${./bin} $out/bin
|
|
|
|
substituteInPlace $out/bin/otpmenu \
|
|
--replace '#! /bin/sh' '#! ${dash}/bin/dash' \
|
|
--replace '#PATH=' PATH=${lib.makeBinPath [
|
|
coreutils
|
|
dash
|
|
fzf
|
|
gnused
|
|
pass-otp
|
|
rxvt_unicode
|
|
utillinux
|
|
xdotool
|
|
]}
|
|
|
|
substituteInPlace $out/bin/passmenu \
|
|
--replace '#! /bin/sh' '#! ${dash}/bin/dash' \
|
|
--replace '#PATH=' PATH=${lib.makeBinPath [
|
|
coreutils
|
|
dash
|
|
fzf
|
|
gnused
|
|
pass-otp
|
|
rxvt_unicode
|
|
utillinux
|
|
xdotool
|
|
]}
|
|
''
|