diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/graphics/glabels/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/graphics/glabels/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/graphics/glabels/default.nix b/nixpkgs/pkgs/applications/graphics/glabels/default.nix new file mode 100644 index 000000000000..6bc59cd7d02b --- /dev/null +++ b/nixpkgs/pkgs/applications/graphics/glabels/default.nix @@ -0,0 +1,42 @@ +{ stdenv, fetchurl, barcode, gnome3, autoreconfHook +, gtk3, gtk-doc, libxml2, librsvg , libtool, libe-book, gsettings-desktop-schemas +, intltool, itstool, makeWrapper, pkgconfig, hicolor-icon-theme +}: + +stdenv.mkDerivation rec { + pname = "glabels"; + version = "3.4.1"; + + src = fetchurl { + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "0f2rki8i27pkd9r0gz03cdl1g4vnmvp0j49nhxqn275vi8lmgr0q"; + }; + + nativeBuildInputs = [ autoreconfHook pkgconfig makeWrapper intltool ]; + buildInputs = [ + barcode gtk3 gtk-doc gnome3.yelp-tools + gnome3.gnome-common gsettings-desktop-schemas + itstool libxml2 librsvg libe-book libtool + hicolor-icon-theme + ]; + + preFixup = '' + wrapProgram "$out/bin/glabels-3" \ + --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" + ''; + + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + versionPolicy = "none"; + }; + }; + + meta = with stdenv.lib; { + description = "Create labels and business cards"; + homepage = https://glabels.org/; + license = with licenses; [ gpl3Plus lgpl3Plus ]; + platforms = platforms.unix; + maintainers = [ maintainers.nico202 ]; + }; +} |