about summary refs log tree commit diff
path: root/pkgs/tools/graphics/dcraw
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-04-07 19:17:22 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-04-07 19:17:22 +0000
commit6f96ae757de88295289fe7724ef1c505560b8125 (patch)
tree5a776b74e7977ad539dc795e853e5ab4160e2fab /pkgs/tools/graphics/dcraw
parent2c3aaf09d184ae61dc753c219e786fe6c30307c1 (diff)
Adding dcraw again, this time with the whole nix expression.
svn path=/nixpkgs/trunk/; revision=14917
Diffstat (limited to 'pkgs/tools/graphics/dcraw')
-rw-r--r--pkgs/tools/graphics/dcraw/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/dcraw/default.nix b/pkgs/tools/graphics/dcraw/default.nix
new file mode 100644
index 0000000000000..d69acd9168b2a
--- /dev/null
+++ b/pkgs/tools/graphics/dcraw/default.nix
@@ -0,0 +1,29 @@
+{stdenv, fetchurl, libjpeg, lcms, gettext }:
+
+stdenv.mkDerivation {
+  name = "dcraw-8.93";
+
+  src = fetchurl {
+    url = http://www.cybercom.net/~dcoffin/dcraw/archive/dcraw-8.93.tar.gz;
+    sha256 = "1vjqfpqr0pczrf8ap3jpar1f98gik9is9v34sv1ridcxx87rniqz";
+  };
+
+  buildInputs = [ libjpeg lcms gettext ];
+
+  patchPhase = ''
+    sed -i -e s@/usr/local@$out@ install
+  '';
+
+  buildPhase = ''
+    ensureDir $out/bin
+    set +e
+    sh install
+    set -e
+  '';
+
+  meta = {
+    homepage = http://www.cybercom.net/~dcoffin/dcraw/;
+    description = "Decoder for many camera raw picture formats";
+    license = "free";
+  };
+}