2021-01-17 02:21:50 +00:00
|
|
|
{ lib, stdenv, gettext, libxml2, libhandy, fetchurl, pkg-config, libcanberra-gtk3
|
2018-09-03 23:01:35 +01:00
|
|
|
, gtk3, glib, meson, ninja, python3, wrapGAppsHook, appstream-glib, desktop-file-utils
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome, gsettings-desktop-schemas }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 19:04:59 +00:00
|
|
|
let
|
|
|
|
pname = "gnome-screenshot";
|
2021-11-22 18:43:49 +00:00
|
|
|
version = "41.0";
|
2018-03-22 19:04:59 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-21 05:15:46 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${name}.tar.xz";
|
2021-11-22 18:43:49 +00:00
|
|
|
sha256 = "Stt97JJkKPdCY9V5ZnPPFC5HILbnaPVGio0JM/mMlZc=";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/postinstall.py # patchShebangs requires executable file
|
|
|
|
patchShebangs build-aux/postinstall.py
|
|
|
|
'';
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2021-01-17 02:21:50 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config gettext appstream-glib libxml2 desktop-file-utils python3 wrapGAppsHook ];
|
2018-03-22 19:04:59 +00:00
|
|
|
buildInputs = [
|
2021-05-07 22:18:14 +01:00
|
|
|
gtk3 glib libcanberra-gtk3 libhandy gnome.adwaita-icon-theme
|
2019-04-17 01:38:26 +01:00
|
|
|
gsettings-desktop-schemas
|
2017-10-04 22:50:14 +01:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 19:04:59 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2019-09-09 00:38:31 +01:00
|
|
|
packageName = pname;
|
2021-05-07 22:18:14 +01:00
|
|
|
attrPath = "gnome.${pname}";
|
2018-03-22 19:04:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://en.wikipedia.org/wiki/GNOME_Screenshot";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Utility used in the GNOME desktop environment for taking screenshots";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|