summary refs log tree commit diff
path: root/pkgs/development/libraries/exiv2/default.nix
blob: 3f731bdf799ef0b8954a6f5d12218425fc890efb (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
28
29
30
31
32
33
{ stdenv, fetchurl, fetchFromGitHub, fetchpatch, zlib, expat, gettext
, autoconf }:

stdenv.mkDerivation rec {
  name = "exiv2-0.26.2018.12.30";

    #url = "https://www.exiv2.org/builds/${name}-trunk.tar.gz";
  src = fetchFromGitHub rec {
    owner = "exiv2";
    repo  = "exiv2";
    rev = "f5d0b25"; # https://github.com/Exiv2/exiv2/commits/0.26
    sha256 = "1blaz3g8dlij881g14nv2nsgr984wy6ypbwgi2pixk978p0gm70i";
  };

  postPatch = "patchShebangs ./src/svn_version.sh";

  preConfigure = "make config"; # needed because not using tarball

  outputs = [ "out" "dev" ];

  nativeBuildInputs = [
    gettext
    autoconf # needed because not using tarball
  ];
  propagatedBuildInputs = [ zlib expat ];

  meta = with stdenv.lib; {
    homepage = https://www.exiv2.org/;
    description = "A library and command-line utility to manage image metadata";
    platforms = platforms.all;
    license = licenses.gpl2Plus;
  };
}