forked from mirrors/nixpkgs
5cc18c4781
Standard library now contains stdenv.lib.versions.majorMinor, which does the same.
30 lines
819 B
Nix
30 lines
819 B
Nix
{ stdenv, fetchurl, pkgconfig, libxml2, libxslt, gnome3
|
|
, gnome-doc-utils, intltool, libX11, which, itstool, wrapGAppsHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "zenity-${version}";
|
|
version = "3.28.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/zenity/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
|
sha256 = "0swavrkc5ps3fwzy6h6l5mmim0wwy10xrq0qqkay5d0zf9a965yv";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript { packageName = "zenity"; attrPath = "gnome3.zenity"; };
|
|
};
|
|
|
|
preBuild = ''
|
|
mkdir -p $out/include
|
|
'';
|
|
|
|
buildInputs = [ gnome3.gtk libxml2 libxslt libX11 itstool ];
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool gnome-doc-utils which wrapGAppsHook ];
|
|
|
|
meta = with stdenv.lib; {
|
|
platforms = platforms.linux;
|
|
maintainers = gnome3.maintainers;
|
|
};
|
|
}
|