Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
91 lines
1.7 KiB
Nix
91 lines
1.7 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
stdenv,
|
|
makeWrapper,
|
|
xorg,
|
|
ncurses,
|
|
coreutils,
|
|
bashInteractive,
|
|
gnused,
|
|
gnugrep,
|
|
glibc,
|
|
xterm,
|
|
util-linux,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bashrun2";
|
|
version = "0.2.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hbekel";
|
|
repo = "bashrun2";
|
|
tag = "v${version}";
|
|
hash = "sha256-U2ntplhyv8KAkaMd2D6wRsUIYkhJzxdgHo2xsbNRfqM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
buildInputs = [
|
|
xorg.libX11
|
|
];
|
|
|
|
patches = [
|
|
./remote-permissions.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace \
|
|
man/bashrun2.1 \
|
|
--replace-fail '/usr/bin/brwctl' "$out/bin/brwctl"
|
|
|
|
substituteInPlace \
|
|
src/bindings \
|
|
src/registry \
|
|
src/utils \
|
|
src/bashrun2 \
|
|
src/frontend \
|
|
src/remote \
|
|
src/plugin \
|
|
src/engine \
|
|
src/bookmarks \
|
|
--replace-fail '/bin/rm' '${coreutils}/bin/rm'
|
|
|
|
substituteInPlace \
|
|
src/bashrun2 \
|
|
--replace-fail '#!/usr/bin/env bash' '#!${lib.getExe bashInteractive}'
|
|
|
|
substituteInPlace \
|
|
src/remote \
|
|
--replace-fail '/bin/cp' '${coreutils}/bin/cp'
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/bashrun2 \
|
|
--prefix PATH : "$out/bin:${
|
|
lib.makeBinPath [
|
|
ncurses
|
|
coreutils
|
|
gnused
|
|
gnugrep
|
|
glibc
|
|
bashInteractive
|
|
xterm
|
|
util-linux
|
|
]
|
|
}" \
|
|
--prefix XDG_CONFIG_DIRS : "$out/etc/xdg"
|
|
'';
|
|
|
|
meta = {
|
|
maintainers = with lib.maintainers; [ dopplerian ];
|
|
mainProgram = "bashrun2";
|
|
homepage = "http://henning-liebenau.de/bashrun2/";
|
|
license = lib.licenses.gpl2Plus;
|
|
description = "Application launcher based on a modified bash session in a small terminal window";
|
|
};
|
|
}
|