diff options
author | Robert Helgesson <robert@rycee.net> | 2015-12-19 00:29:32 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2015-12-19 00:29:32 +0100 |
commit | 829634620796fc8b40ff35dbd2abba37595bd2b6 (patch) | |
tree | 7a89625a46cb94915cf7f8d81747593aa92fb3da /pkgs/tools/graphics/jhead | |
parent | b3b7f9f37f8c134aa22b66ec6a0a1d555f1638bb (diff) |
jhead: 2.87 -> 3.00
Also clean up the package quite a bit and add myself as maintainer.
Diffstat (limited to 'pkgs/tools/graphics/jhead')
-rw-r--r-- | pkgs/tools/graphics/jhead/default.nix | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/pkgs/tools/graphics/jhead/default.nix b/pkgs/tools/graphics/jhead/default.nix index ee44ff975bb3d..470a2efdf6bac 100644 --- a/pkgs/tools/graphics/jhead/default.nix +++ b/pkgs/tools/graphics/jhead/default.nix @@ -1,25 +1,38 @@ -{stdenv, fetchurl}: +{ stdenv, fetchurl }: -stdenv.mkDerivation { - name = "jhead-2.87"; +stdenv.mkDerivation rec { + name = "jhead-${version}"; + version = "3.00"; src = fetchurl { - url = http://www.sentex.net/~mwandel/jhead/jhead-2.87.tar.gz; - sha256 = "0vpp5jz49w5qzjzq3vllrbff7fr906jy8a8sq12yq8kw6qwbjjsl"; + url = "http://www.sentex.net/~mwandel/jhead/${name}.tar.gz"; + sha256 = "0pl9s9ssb2a9di82f3ypin2hd098ns8kzdsxw3i2y94f07d03k48"; }; patchPhase = '' - sed -i s@/usr/bin@$out/bin@ makefile + substituteInPlace makefile \ + --replace /usr/local/bin $out/bin + + substituteInPlace jhead.c \ + --replace "\" Compiled: \"__DATE__" "" ''; - preInstall = '' - mkdir -p $out/bin + installPhase = '' + mkdir -p \ + $out/bin \ + $out/man/man1 \ + $out/share/doc/${name} + + cp -v jhead $out/bin + cp -v jhead.1 $out/man/man1 + cp -v *.txt $out/share/doc/${name} ''; - meta = { + meta = with stdenv.lib; { homepage = http://www.sentex.net/~mwandel/jhead/; description = "Exif Jpeg header manipulation tool"; - license = stdenv.lib.licenses.free; - maintainers = with stdenv.lib.maintainers; [viric]; + license = licenses.publicDomain; + maintainers = with maintainers; [ viric rycee ]; + platforms = platforms.all; }; } |