nixpkgs/pkgs/applications/graphics/glabels/default.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

2017-03-19 00:38:47 +01:00
{ stdenv, fetchurl, barcode, gnome3, autoreconfHook
, gtk3, gtk-doc, libxml2, librsvg , libtool, libe-book
2016-02-15 21:34:59 +01:00
, intltool, itstool, makeWrapper, pkgconfig, which
}:
stdenv.mkDerivation rec {
name = "glabels-${version}";
2017-03-19 00:38:47 +01:00
version = "3.4.0";
src = fetchurl {
url = "http://ftp.gnome.org/pub/GNOME/sources/glabels/3.4/glabels-3.4.0.tar.xz";
sha256 = "04345crf5yrhq6rlrymz630rxnm8yw41vx04hb6xn2nkjn9hf3nl";
2016-02-15 21:34:59 +01:00
};
2017-03-19 00:38:47 +01:00
nativeBuildInputs = [ autoreconfHook pkgconfig makeWrapper intltool ];
2016-02-15 21:34:59 +01:00
buildInputs = [
barcode gtk3 gtk-doc gnome3.yelp-tools
gnome3.gnome-common gnome3.gsettings-desktop-schemas
2017-03-19 00:38:47 +01:00
itstool libxml2 librsvg libe-book libtool
2016-02-15 21:34:59 +01:00
];
preFixup = ''
rm "$out/share/icons/hicolor/icon-theme.cache"
wrapProgram "$out/bin/glabels-3" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
'';
meta = {
description = "Create labels and business cards";
homepage = http://glabels.org/;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.nico202 ];
};
}