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

52 lines
941 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
2023-07-17 03:48:55 +00:00
, libadwaita
, autoreconfHook
, wrapGAppsHook
, pkg-config
}:
2022-07-13 12:32:10 +00:00
stdenv.mkDerivation rec {
pname = "nautilus-annotations";
2023-07-17 03:48:55 +00:00
version = "2.0.1";
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;
2023-07-17 03:48:55 +00:00
hash = "sha256-BivnmsACnpxdd6FV+ncdDd5ZwtJSSzNExoiCXeXIFkA=";
2022-07-13 12:32:10 +00:00
};
2023-07-17 03:48:55 +00:00
nativeBuildInputs = [
autoreconfHook
glib
gnome.nautilus
pkg-config
wrapGAppsHook
];
2022-07-13 12:32:10 +00:00
2023-07-17 03:48:55 +00:00
buildInputs = [
libadwaita
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;
};
}