1 { lib, stdenv, fetchurl, fetchpatch, barcode, gnome, autoreconfHook
2 , gtk3, gtk-doc, libxml2, librsvg , libtool, libe-book, gsettings-desktop-schemas
3 , intltool, itstool, makeWrapper, pkg-config, yelp-tools
6 stdenv.mkDerivation rec {
11 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
12 sha256 = "0f2rki8i27pkd9r0gz03cdl1g4vnmvp0j49nhxqn275vi8lmgr0q";
16 # Pull patch pending upstream inclusion for -fno-common toolchain support:
17 # https://github.com/jimevins/glabels/pull/76
19 name = "fno-common.patch";
20 url = "https://github.com/jimevins/glabels/commit/f64e3f34e3631330fff2fb48ab271ff9c6160229.patch";
21 sha256 = "13q6g4bxzvzwjnvzkvijds2b6yvc4xqbdwgqnwmj65ln6ngxz8sa";
25 nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper intltool ];
27 barcode gtk3 gtk-doc yelp-tools
28 gnome.gnome-common gsettings-desktop-schemas
29 itstool libxml2 librsvg libe-book libtool
33 wrapProgram "$out/bin/glabels-3" \
34 --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
38 updateScript = gnome.updateScript {
40 versionPolicy = "none";
45 description = "Create labels and business cards";
46 homepage = "https://github.com/jimevins/glabels";
47 license = with licenses; [ gpl3Plus lgpl3Plus ];
48 platforms = platforms.unix;
49 maintainers = [ maintainers.nico202 ];