44 lines
1.3 KiB
Nix
44 lines
1.3 KiB
Nix
{ stdenv, gettext, libxml2, fetchurl, pkgconfig, libcanberra-gtk3
|
|
, gtk3, glib, meson, ninja, wrapGAppsHook, appstream-glib, desktop-file-utils
|
|
, gnome3 }:
|
|
|
|
let
|
|
pname = "gnome-screenshot";
|
|
version = "3.26.0";
|
|
in stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
|
sha256 = "1bbc11595d3822f4b92319cdf9ba49dd00f5471b6046c590847dc424a874c8bb";
|
|
};
|
|
|
|
doCheck = true;
|
|
|
|
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 wrapGAppsHook ];
|
|
buildInputs = [
|
|
gtk3 glib libcanberra-gtk3 gnome3.defaultIconTheme
|
|
gnome3.gsettings-desktop-schemas
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|