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