2021-04-16 16:46:04 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libjpeg }:
|
2009-10-11 17:52:14 +02:00
|
|
|
|
2015-12-19 00:29:32 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "jhead";
|
2021-04-16 16:46:04 +02:00
|
|
|
version = "3.06.0.1";
|
2009-10-11 17:52:14 +02:00
|
|
|
|
2021-04-16 16:46:04 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Matthias-Wandel";
|
|
|
|
repo = "jhead";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0zgh36486cpcnf7xg6dwf7rhz2h4gpayqvdk8hmrx6y418b2pfyf";
|
2009-10-11 17:52:14 +02:00
|
|
|
};
|
|
|
|
|
2016-01-06 20:33:00 +01:00
|
|
|
buildInputs = [ libjpeg ];
|
|
|
|
|
2020-06-19 21:32:59 +02:00
|
|
|
makeFlags = [ "CPPFLAGS=" "CFLAGS=-O3" "LDFLAGS=" ];
|
2015-12-19 00:29:32 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p \
|
|
|
|
$out/bin \
|
|
|
|
$out/man/man1 \
|
2019-08-15 14:41:18 +02:00
|
|
|
$out/share/doc/${pname}-${version}
|
2015-12-19 00:29:32 +01:00
|
|
|
|
|
|
|
cp -v jhead $out/bin
|
|
|
|
cp -v jhead.1 $out/man/man1
|
2019-08-15 14:41:18 +02:00
|
|
|
cp -v *.txt $out/share/doc/${pname}-${version}
|
2009-10-11 17:52:14 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.sentex.net/~mwandel/jhead/";
|
2009-10-11 17:52:14 +02:00
|
|
|
description = "Exif Jpeg header manipulation tool";
|
2015-12-19 00:29:32 +01:00
|
|
|
license = licenses.publicDomain;
|
2018-07-22 21:50:19 +02:00
|
|
|
maintainers = with maintainers; [ rycee ];
|
2015-12-19 00:29:32 +01:00
|
|
|
platforms = platforms.all;
|
2009-10-11 17:52:14 +02:00
|
|
|
};
|
|
|
|
}
|