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
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
rofi,
|
|
gtk3,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rofi-file-browser-extended";
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "marvinkreis";
|
|
repo = "rofi-file-browser-extended";
|
|
tag = version;
|
|
hash = "sha256-UEFv0skFzWhgFkmz1h8uV1ygW977zNq1Dw8VAawqUgw=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
patches = [
|
|
./fix_incompatible_pointer_type.patch
|
|
./fix_build_on_i686.patch
|
|
./fix_recent_glib_deprecation_warning.patch
|
|
];
|
|
|
|
prePatch = ''
|
|
substituteInPlace ./CMakeLists.txt \
|
|
--replace ' ''${ROFI_PLUGINS_DIR}' " $out/lib/rofi" \
|
|
--replace "/usr/share/" "$out/share/"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
rofi
|
|
gtk3
|
|
];
|
|
|
|
ROFI_PLUGINS_DIR = "$out/lib/rofi";
|
|
|
|
dontUseCmakeBuildDir = true;
|
|
|
|
meta = with lib; {
|
|
description = "Use rofi to quickly open files";
|
|
homepage = "https://github.com/marvinkreis/rofi-file-browser-extended";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
bew
|
|
jluttine
|
|
];
|
|
};
|
|
}
|