summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-01-04 09:29:52 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-01-04 09:29:52 +0000
commitb15381fcf64cce388556936fafae92adc49c7f6c (patch)
tree29da6dd1a3b1c5807453ac755cd9396895cae5b7 /pkgs/tools/graphics
parentb3709689db6af30e4517f678ff3844a32c9382f4 (diff)
downloadnixlib-b15381fcf64cce388556936fafae92adc49c7f6c.tar
nixlib-b15381fcf64cce388556936fafae92adc49c7f6c.tar.gz
nixlib-b15381fcf64cce388556936fafae92adc49c7f6c.tar.bz2
nixlib-b15381fcf64cce388556936fafae92adc49c7f6c.tar.lz
nixlib-b15381fcf64cce388556936fafae92adc49c7f6c.tar.xz
nixlib-b15381fcf64cce388556936fafae92adc49c7f6c.tar.zst
nixlib-b15381fcf64cce388556936fafae92adc49c7f6c.zip
Adding pngtoico.
svn path=/nixpkgs/trunk/; revision=31264
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/pngtoico/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/pngtoico/default.nix b/pkgs/tools/graphics/pngtoico/default.nix
new file mode 100644
index 000000000000..df1046cb750f
--- /dev/null
+++ b/pkgs/tools/graphics/pngtoico/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchurl, libpng }:
+
+stdenv.mkDerivation rec {
+  name = "pngtoico-1.0";
+
+  src = fetchurl {
+    url = mirror://kernel/software/graphics/pngtoico/pngtoico-1.0.tar.gz;
+    sha256 = "1xb4aa57sjvgqfp01br3dm72hf7q0gb2ad144s1ifrs09215fgph";
+  };
+
+  configurePhase = ''
+    sed -i s,/usr/local,$out, Makefile
+  '';
+
+  buildInputs = [ libpng ];
+
+  meta = {
+    homepage = http://www.kernel.org/pub/software/graphics/pngtoico/;
+    description = "Small utility to convert a set of PNG images to Microsoft ICO format";
+    license = "GPLv2+";
+    platforms = with stdenv.lib.platforms; linux;
+  };
+}