diff options
author | Rodney Lorrimar <dev@rodney.id.au> | 2016-01-22 18:25:25 +0000 |
---|---|---|
committer | Rodney Lorrimar <dev@rodney.id.au> | 2016-01-22 19:45:48 +0000 |
commit | a8aecdcc20008427964945bc2f6c1eff9b8dab4b (patch) | |
tree | a80e8b11ec9da25cae1f8aa3eb6e1111f3797b89 /pkgs/tools/graphics/xcftools | |
parent | 4a6602c3cd0efeaa7cb1bfe3550867f83285bc84 (diff) | |
download | nixlib-a8aecdcc20008427964945bc2f6c1eff9b8dab4b.tar nixlib-a8aecdcc20008427964945bc2f6c1eff9b8dab4b.tar.gz nixlib-a8aecdcc20008427964945bc2f6c1eff9b8dab4b.tar.bz2 nixlib-a8aecdcc20008427964945bc2f6c1eff9b8dab4b.tar.lz nixlib-a8aecdcc20008427964945bc2f6c1eff9b8dab4b.tar.xz nixlib-a8aecdcc20008427964945bc2f6c1eff9b8dab4b.tar.zst nixlib-a8aecdcc20008427964945bc2f6c1eff9b8dab4b.zip |
xcftools: init at 1.0.7
Diffstat (limited to 'pkgs/tools/graphics/xcftools')
-rw-r--r-- | pkgs/tools/graphics/xcftools/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/xcftools/default.nix b/pkgs/tools/graphics/xcftools/default.nix new file mode 100644 index 000000000000..457f47f75d61 --- /dev/null +++ b/pkgs/tools/graphics/xcftools/default.nix @@ -0,0 +1,39 @@ +{stdenv, fetchurl, libpng, perl, gettext }: + +stdenv.mkDerivation { + name = "xcftools-1.0.7"; + + src = fetchurl { + url = "http://henning.makholm.net/xcftools/xcftools-1.0.7.tar.gz"; + sha256 = "19i0x7yhlw6hd2gp013884zchg63yzjdj4hpany011il0n26vgqy"; + }; + + buildInputs = [ libpng perl gettext ]; + + patchPhase = '' + # Required if building with libpng-1.6, innocuous otherwise + substituteInPlace xcf2png.c \ + --replace png_voidp_NULL NULL \ + --replace png_error_ptr_NULL NULL + + # xcfview needs mailcap and isn't that useful anyway + sed -i -e '/BINARIES/s/xcfview//' Makefile.in + ''; + + meta = { + homepage = http://henning.makholm.net/software; + description = "Command-line tools for converting Gimp XCF files"; + longDescription = '' + A set of fast command-line tools for extracting information from + the Gimp's native file format XCF. + + The tools are designed to allow efficient use of layered XCF + files as sources in a build system that use 'make' and similar + tools to manage automatic processing of the graphics. + + These tools work independently of the Gimp engine and do not + require the Gimp to even be installed. + ''; + license = stdenv.lib.licenses.gpl2; + }; +} |