From 60b8b2b6139c60cbc3c019a6bed377ccf862cde8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 23 Mar 2010 22:40:46 +0000 Subject: [PATCH] Adding pngnq. svn path=/nixpkgs/trunk/; revision=20801 --- pkgs/tools/graphics/pngnq/default.nix | 18 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/tools/graphics/pngnq/default.nix diff --git a/pkgs/tools/graphics/pngnq/default.nix b/pkgs/tools/graphics/pngnq/default.nix new file mode 100644 index 000000000000..d1b1cfad00dd --- /dev/null +++ b/pkgs/tools/graphics/pngnq/default.nix @@ -0,0 +1,18 @@ +{ stdenv, fetchurl, libpng }: + +stdenv.mkDerivation rec { + name = "pngnq-1.0"; + + src = fetchurl { + url = "mirror://sourceforge/pngnq/${name}.tar.gz"; + sha256 = "19q07hlhr9p5d0wqgzyrcxdnqlczdwpiibcji0k2a6jfmxrcn4rl"; + }; + + buildInputs = [ libpng ]; + + meta = { + homepage = http://pngnq.sourceforge.net/; + description = "A PNG quantizer"; + license = "bsd"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 598cdf017763..3167e55c1420 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1356,6 +1356,10 @@ let inherit fetchurl stdenv libpng; }; + pngnq = import ../tools/graphics/pngnq { + inherit fetchurl stdenv libpng; + }; + povray = import ../tools/graphics/povray { inherit fetchurl stdenv; };