stockholm/tv/5pkgs/simple/fzmenu/default.nix

38 lines
750 B
Nix
Raw Normal View History

{ 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' \
--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' \
--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
]}
''