nixos-config/pkgs/nautilus-annotations/default.nix

43 lines
892 B
Nix
Raw Normal View History

{ stdenv
, lib
2022-11-01 04:27:52 +00:00
, fetchFromGitLab
, glib
, gnome
2022-11-01 04:27:52 +00:00
, gtksourceview5
, autoreconfHook
, wrapGAppsHook
, pkg-config
}:
2022-07-13 12:32:10 +00:00
stdenv.mkDerivation rec {
pname = "nautilus-annotations";
2022-11-01 04:27:52 +00:00
version = "0.10.0";
2022-07-13 12:32:10 +00:00
2022-11-01 04:27:52 +00:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "madmurphy";
repo = "nautilus-annotations";
2022-07-13 12:32:10 +00:00
rev = version;
2022-11-01 04:27:52 +00:00
sha256 = "sha256-obhy95HvlZuiqTf6IC+epqiWS8hcDHsOkYLSJ8LZ6z0=";
2022-07-13 12:32:10 +00:00
};
nativeBuildInputs =
[ autoreconfHook glib gnome.nautilus pkg-config wrapGAppsHook ];
2022-07-13 12:32:10 +00:00
2022-11-01 04:27:52 +00:00
buildInputs = [ gtksourceview5 ];
2022-07-13 12:32:10 +00:00
preConfigure = ''
./bootstrap
'';
installFlags = [
"NAUTILUS_EXTENSION_DIR=${placeholder "out"}/lib/nautilus/extensions-3.0"
];
meta = with lib; {
homepage = "https://gitlab.gnome.org/madmurphy/nautilus-annotations";
description = "Nautilus extension that adds back file annotations";
license = licenses.gpl3Only;
};
}