diff options
author | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2016-01-22 22:47:59 +0300 |
---|---|---|
committer | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2016-01-22 22:47:59 +0300 |
commit | 0f152180b090b610e547d089bdbd4633768084bc (patch) | |
tree | 1fafb4443b878c2fc625fea851b31d69611a4bec /pkgs | |
parent | e80f54d3a2e836ec09769fd15f3ad4a3671e45a8 (diff) | |
parent | a8aecdcc20008427964945bc2f6c1eff9b8dab4b (diff) | |
download | nixlib-0f152180b090b610e547d089bdbd4633768084bc.tar nixlib-0f152180b090b610e547d089bdbd4633768084bc.tar.gz nixlib-0f152180b090b610e547d089bdbd4633768084bc.tar.bz2 nixlib-0f152180b090b610e547d089bdbd4633768084bc.tar.lz nixlib-0f152180b090b610e547d089bdbd4633768084bc.tar.xz nixlib-0f152180b090b610e547d089bdbd4633768084bc.tar.zst nixlib-0f152180b090b610e547d089bdbd4633768084bc.zip |
Merge pull request #12553 from rvl/xcftools
xcftools: init at 1.0.7
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/graphics/xcftools/default.nix | 39 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 41 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e5311e65c651..a8f01dda21f0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15759,6 +15759,8 @@ let xboxdrv = callPackage ../misc/drivers/xboxdrv { }; + xcftools = callPackage ../tools/graphics/xcftools { }; + xhyve = callPackage ../applications/virtualization/xhyve { }; xinput_calibrator = callPackage ../tools/X11/xinput_calibrator {}; |