2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, rofi, gtk3 }:
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rofi-file-browser-extended";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.3.1";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marvinkreis";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-UEFv0skFzWhgFkmz1h8uV1ygW977zNq1Dw8VAawqUgw=";
|
2020-05-03 17:38:23 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace ./CMakeLists.txt \
|
|
|
|
--replace ' ''${ROFI_PLUGINS_DIR}' " $out/lib/rofi" \
|
|
|
|
--replace "/usr/share/" "$out/share/"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-05-03 17:38:23 +00:00
|
|
|
buildInputs = [ rofi gtk3 ];
|
|
|
|
|
|
|
|
ROFI_PLUGINS_DIR = "$out/lib/rofi";
|
|
|
|
|
|
|
|
dontUseCmakeBuildDir = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-03 17:38:23 +00:00
|
|
|
description = "Use rofi to quickly open files";
|
|
|
|
homepage = "https://github.com/marvinkreis/rofi-file-browser-extended";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|