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

35 lines
745 B
Nix
Raw Normal View History

2018-11-28 08:20:25 +00:00
{ coreutils, dash, gnused, fzf, pass, runCommand, rxvt_unicode, stdenv, 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=${stdenv.lib.makeBinPath [
coreutils
dash
fzf
gnused
pass
rxvt_unicode
utillinux
xdotool
]}
substituteInPlace $out/bin/passmenu \
--replace '#! /bin/sh' '#! ${dash}/bin/dash' \
--replace '#PATH=' PATH=${stdenv.lib.makeBinPath [
coreutils
dash
fzf
gnused
pass
rxvt_unicode
utillinux
xdotool
]}
''