2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, barcode, gnome, autoreconfHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3, gtk-doc, libxml2, librsvg , libtool, libe-book, gsettings-desktop-schemas
|
2021-02-05 17:12:51 +00:00
|
|
|
, intltool, itstool, makeWrapper, pkg-config, yelp-tools
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "glabels";
|
|
|
|
version = "3.4.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0f2rki8i27pkd9r0gz03cdl1g4vnmvp0j49nhxqn275vi8lmgr0q";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper intltool ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
barcode gtk3 gtk-doc yelp-tools
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.gnome-common gsettings-desktop-schemas
|
2020-04-24 23:36:52 +00:00
|
|
|
itstool libxml2 librsvg libe-book libtool
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/glabels-3" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Create labels and business cards";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/jimevins/glabels";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ gpl3Plus lgpl3Plus ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.nico202 ];
|
|
|
|
};
|
|
|
|
}
|