summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-10-11 15:52:14 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-10-11 15:52:14 +0000
commitebe0bc809debea3401e0c78c185edbf3b496801a (patch)
treee8b171bde7f7324f1ca39831286f17bc1e82d440 /pkgs
parent585654955fd979c76dab180892e3e9eb608dc7b5 (diff)
downloadnixlib-ebe0bc809debea3401e0c78c185edbf3b496801a.tar
nixlib-ebe0bc809debea3401e0c78c185edbf3b496801a.tar.gz
nixlib-ebe0bc809debea3401e0c78c185edbf3b496801a.tar.bz2
nixlib-ebe0bc809debea3401e0c78c185edbf3b496801a.tar.lz
nixlib-ebe0bc809debea3401e0c78c185edbf3b496801a.tar.xz
nixlib-ebe0bc809debea3401e0c78c185edbf3b496801a.tar.zst
nixlib-ebe0bc809debea3401e0c78c185edbf3b496801a.zip
Adding jhead
svn path=/nixpkgs/trunk/; revision=17747
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/graphics/jhead/default.nix25
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/jhead/default.nix b/pkgs/tools/graphics/jhead/default.nix
new file mode 100644
index 000000000000..2d98a1efdce1
--- /dev/null
+++ b/pkgs/tools/graphics/jhead/default.nix
@@ -0,0 +1,25 @@
+{stdenv, fetchurl}:
+
+stdenv.mkDerivation {
+  name = "jhead-2.87";
+
+  src = fetchurl {
+    url = http://www.sentex.net/~mwandel/jhead/jhead-2.87.tar.gz;
+    sha256 = "0vpp5jz49w5qzjzq3vllrbff7fr906jy8a8sq12yq8kw6qwbjjsl";
+  };
+
+  patchPhase = ''
+    sed -i s@/usr/bin@$out/bin@ makefile
+  '';
+
+  preInstall = ''
+    ensureDir $out/bin
+  '';
+
+  meta = {
+    homepage = http://www.sentex.net/~mwandel/jhead/;
+    description = "Exif Jpeg header manipulation tool";
+    license = "free";
+    maintainers = with stdenv.lib.maintainers; [viric];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index cc55a90c248b..94f9544ad7a3 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -963,6 +963,10 @@ let
     inherit fetchurl stdenv unzip jdk;
   };
 
+  jhead = import ../tools/graphics/jhead {
+    inherit stdenv fetchurl;
+  };
+
   jing = import ../tools/text/xml/jing {
     inherit fetchurl stdenv unzip;
   };