nixpkgs/pkgs/development/libraries/exiv2/default.nix

34 lines
926 B
Nix
Raw Normal View History

{ 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";
};
2015-12-30 15:46:31 +00:00
postPatch = "patchShebangs ./src/svn_version.sh";
preConfigure = "make config"; # needed because not using tarball
outputs = [ "out" "dev" ];
2016-04-25 12:51:53 +01:00
nativeBuildInputs = [
gettext
autoconf # needed because not using tarball
];
2015-12-30 15:46:31 +00:00
propagatedBuildInputs = [ zlib expat ];
2018-08-05 19:14:27 +01:00
meta = with stdenv.lib; {
homepage = https://www.exiv2.org/;
description = "A library and command-line utility to manage image metadata";
2018-08-05 19:14:27 +01:00
platforms = platforms.all;
license = licenses.gpl2Plus;
};
}