
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
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";
|
|
rev = 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
|
|
];
|
|
};
|
|
}
|