3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/core/gnome-screenshot/default.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, gettext, libxml2, fetchurl, pkgconfig, libcanberra-gtk3
, gtk3, glib, meson, ninja, python3, wrapGAppsHook, appstream-glib, desktop-file-utils
2018-03-22 19:04:59 +00:00
, gnome3 }:
2018-03-22 19:04:59 +00:00
let
pname = "gnome-screenshot";
version = "3.32.0";
2018-03-22 19:04:59 +00:00
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "09ha7dizjm5ymqpjyrqd10ijfb3xlqc1mwg9ajkrbfry11q9yq4b";
};
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
'';
nativeBuildInputs = [ meson ninja pkgconfig gettext appstream-glib libxml2 desktop-file-utils python3 wrapGAppsHook ];
2018-03-22 19:04:59 +00:00
buildInputs = [
2019-02-13 21:47:50 +00:00
gtk3 glib libcanberra-gtk3 gnome3.adwaita-icon-theme
2018-03-22 19:04:59 +00:00
gnome3.gsettings-desktop-schemas
2017-10-04 22:50:14 +01:00
];
2018-03-22 19:04:59 +00:00
passthru = {
updateScript = gnome3.updateScript {
packageName = "${pname}";
attrPath = "gnome3.${pname}";
};
};
meta = with stdenv.lib; {
homepage = https://en.wikipedia.org/wiki/GNOME_Screenshot;
description = "Utility used in the GNOME desktop environment for taking screenshots";
maintainers = gnome3.maintainers;
license = licenses.gpl2;
platforms = platforms.linux;
};
}