summary refs log tree commit diff
path: root/pkgs/tools/graphics/exiftags/default.nix
blob: 6823f6bc20ebf7d818d6b89882665ab305d6eed0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{lib, stdenv, fetchurl}:

stdenv.mkDerivation rec {
  pname = "exiftags";
  version = "1.01";

  src = fetchurl {
    url = "https://johnst.org/sw/exiftags/exiftags-${version}.tar.gz";
    sha256 = "194ifl6hybx2a5x8jhlh9i56k3qfc6p2l72z0ii1b7v0bzg48myr";
  };

  patchPhase = ''
    sed -i -e s@/usr/local@$out@ Makefile
  '';

  preInstall = ''
    mkdir -p $out/bin $out/man/man1
  '';

  meta = {
    homepage = "http://johnst.org/sw/exiftags/";
    description = "Displays EXIF data from JPEG files";
    license = lib.licenses.free;
    maintainers = with lib.maintainers; [viric];
    platforms = with lib.platforms; unix;
  };
}