2022-05-21 12:38:52 +03:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, barcode, gnome, autoreconfHook
|
2019-04-17 03:38:26 +03:00
|
|
|
, gtk3, gtk-doc, libxml2, librsvg , libtool, libe-book, gsettings-desktop-schemas
|
2021-01-19 09:50:56 +03:00
|
|
|
, intltool, itstool, makeWrapper, pkg-config, yelp-tools
|
2016-02-15 23:34:59 +03:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-25 09:46:07 +03:00
|
|
|
pname = "glabels";
|
2018-12-17 22:04:10 +03:00
|
|
|
version = "3.4.1";
|
2017-03-19 02:38:47 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 16:21:58 +03:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2018-12-17 22:04:10 +03:00
|
|
|
sha256 = "0f2rki8i27pkd9r0gz03cdl1g4vnmvp0j49nhxqn275vi8lmgr0q";
|
2016-02-15 23:34:59 +03:00
|
|
|
};
|
|
|
|
|
2022-05-21 12:38:52 +03:00
|
|
|
patches = [
|
|
|
|
# Pull patch pending upstream inclusion for -fno-common toolchain support:
|
|
|
|
# https://github.com/jimevins/glabels/pull/76
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common.patch";
|
|
|
|
url = "https://github.com/jimevins/glabels/commit/f64e3f34e3631330fff2fb48ab271ff9c6160229.patch";
|
|
|
|
sha256 = "13q6g4bxzvzwjnvzkvijds2b6yvc4xqbdwgqnwmj65ln6ngxz8sa";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 09:50:56 +03:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper intltool ];
|
2016-02-15 23:34:59 +03:00
|
|
|
buildInputs = [
|
2019-11-20 06:30:05 +03:00
|
|
|
barcode gtk3 gtk-doc yelp-tools
|
2021-05-08 00:18:14 +03:00
|
|
|
gnome.gnome-common gsettings-desktop-schemas
|
2017-03-19 02:38:47 +03:00
|
|
|
itstool libxml2 librsvg libe-book libtool
|
2016-02-15 23:34:59 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/glabels-3" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
|
2019-04-25 09:46:07 +03:00
|
|
|
passthru = {
|
2021-05-08 00:18:14 +03:00
|
|
|
updateScript = gnome.updateScript {
|
2019-04-25 09:46:07 +03:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2016-02-15 23:34:59 +03:00
|
|
|
description = "Create labels and business cards";
|
2022-02-06 14:35:31 +03:00
|
|
|
homepage = "https://github.com/jimevins/glabels";
|
2018-12-17 22:04:10 +03:00
|
|
|
license = with licenses; [ gpl3Plus lgpl3Plus ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.nico202 ];
|
2016-02-15 23:34:59 +03:00
|
|
|
};
|
|
|
|
}
|