3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/graphics/glabels/default.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

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