2021-01-17 03:09:27 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, rofi, gtk3 }:
|
2020-04-26 13:51:34 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rofi-file-browser-extended";
|
|
|
|
version = "1.1.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marvinkreis";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "10wk5sif3bmvsgyk2gdy0qhpv1b37zgzf89n3h0yh7pg195fi2gn";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace ./CMakeLists.txt \
|
|
|
|
--replace ' ''${ROFI_PLUGINS_DIR}' " $out/lib/rofi" \
|
|
|
|
--replace "/usr/share/" "$out/share/"
|
|
|
|
'';
|
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-26 13:51:34 +02:00
|
|
|
buildInputs = [ rofi gtk3 ];
|
|
|
|
|
|
|
|
ROFI_PLUGINS_DIR = "$out/lib/rofi";
|
|
|
|
|
|
|
|
dontUseCmakeBuildDir = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-26 13:51:34 +02:00
|
|
|
description = "Use rofi to quickly open files";
|
|
|
|
homepage = "https://github.com/marvinkreis/rofi-file-browser-extended";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|