2017-03-19 00:38:47 +01:00
|
|
|
{ stdenv, fetchurl, barcode, gnome3, autoreconfHook
|
2019-04-17 02:38:26 +02:00
|
|
|
, gtk3, gtk-doc, libxml2, librsvg , libtool, libe-book, gsettings-desktop-schemas
|
2019-11-20 04:30:05 +01:00
|
|
|
, intltool, itstool, makeWrapper, pkgconfig, yelp-tools
|
2016-02-15 21:34:59 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-25 08:46:07 +02:00
|
|
|
pname = "glabels";
|
2018-12-17 20:04:10 +01:00
|
|
|
version = "3.4.1";
|
2017-03-19 00:38:47 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-25 08:46:07 +02:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2018-12-17 20:04:10 +01:00
|
|
|
sha256 = "0f2rki8i27pkd9r0gz03cdl1g4vnmvp0j49nhxqn275vi8lmgr0q";
|
2016-02-15 21:34:59 +01:00
|
|
|
};
|
|
|
|
|
2017-03-19 00:38:47 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig makeWrapper intltool ];
|
2016-02-15 21:34:59 +01:00
|
|
|
buildInputs = [
|
2019-11-20 04:30:05 +01:00
|
|
|
barcode gtk3 gtk-doc yelp-tools
|
2019-04-17 02:38:26 +02:00
|
|
|
gnome3.gnome-common gsettings-desktop-schemas
|
2017-03-19 00:38:47 +01:00
|
|
|
itstool libxml2 librsvg libe-book libtool
|
2016-02-15 21:34:59 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/glabels-3" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
|
2019-04-25 08:46:07 +02:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-17 20:04:10 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-02-15 21:34:59 +01:00
|
|
|
description = "Create labels and business cards";
|
2018-12-17 20:04:10 +01:00
|
|
|
homepage = https://glabels.org/;
|
|
|
|
license = with licenses; [ gpl3Plus lgpl3Plus ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.nico202 ];
|
2016-02-15 21:34:59 +01:00
|
|
|
};
|
|
|
|
}
|