2022-03-30 08:52:05 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, libhandy
|
|
|
|
, fetchurl
|
2022-03-30 08:54:57 +00:00
|
|
|
, fetchpatch
|
2022-03-30 08:52:05 +00:00
|
|
|
, pkg-config
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
2024-04-26 20:24:03 +00:00
|
|
|
, wrapGAppsHook3
|
2022-03-30 08:52:05 +00:00
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gnome
|
2024-06-22 12:43:05 +00:00
|
|
|
, adwaita-icon-theme
|
2022-03-30 08:52:05 +00:00
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2022-03-30 08:52:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-22 19:04:59 +00:00
|
|
|
pname = "gnome-screenshot";
|
2021-11-22 18:43:49 +00:00
|
|
|
version = "41.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-08-20 22:56:55 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-screenshot/${lib.versions.major version}/gnome-screenshot-${version}.tar.xz";
|
2024-09-14 21:47:11 +00:00
|
|
|
hash = "sha256-Stt97JJkKPdCY9V5ZnPPFC5HILbnaPVGio0JM/mMlZc=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 08:54:57 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with meson 0.61
|
|
|
|
# https://gitlab.gnome.org/GNOME/gnome-screenshot/-/issues/186
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/gnome-screenshot/-/commit/b60dad3c2536c17bd201f74ad8e40eb74385ed9f.patch";
|
2024-09-14 21:47:11 +00:00
|
|
|
hash = "sha256-Js83h/3xxcw2hsgjzGa5lAYFXVrt6MPhXOTh5dZTx/w=";
|
2022-03-30 08:54:57 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-03-30 08:52:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gettext
|
|
|
|
appstream-glib
|
|
|
|
libxml2
|
|
|
|
desktop-file-utils
|
|
|
|
python3
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2022-03-30 08:52:05 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
libcanberra-gtk3
|
|
|
|
libhandy
|
2024-06-22 12:43:05 +00:00
|
|
|
adwaita-icon-theme
|
2022-03-30 08:52:05 +00:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
2016-09-18 19:35:23 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-10-04 21:50:14 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/postinstall.py # patchShebangs requires executable file
|
|
|
|
patchShebangs build-aux/postinstall.py
|
|
|
|
'';
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-03-22 19:04:59 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2024-08-20 22:56:55 +00:00
|
|
|
packageName = "gnome-screenshot";
|
2018-03-22 19:04:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-03-30 08:52:05 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/gnome-screenshot";
|
2016-09-18 19:35:23 +00:00
|
|
|
description = "Utility used in the GNOME desktop environment for taking screenshots";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "gnome-screenshot";
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2022-03-30 08:52:05 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2016-09-18 19:35:23 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|