3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/rofi-file-browser/default.nix

35 lines
895 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, rofi, gtk3 }:
stdenv.mkDerivation rec {
pname = "rofi-file-browser-extended";
2022-01-23 17:26:18 +00:00
version = "1.3.0";
src = fetchFromGitHub {
owner = "marvinkreis";
repo = pname;
rev = version;
2022-01-23 17:26:18 +00:00
sha256 = "sha256-TNAAImQaIJRgvD8kFf2oHNj4bQiq1NhD8KkCgW5dSK8=";
fetchSubmodules = true;
};
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; [ jluttine ];
};
}