2023-06-24 09:57:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libjpeg }:
|
2009-10-11 15:52:14 +00:00
|
|
|
|
2015-12-18 23:29:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "jhead";
|
2023-06-24 09:57:50 +00:00
|
|
|
version = "3.08";
|
2009-10-11 15:52:14 +00:00
|
|
|
|
2021-04-16 14:46:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Matthias-Wandel";
|
|
|
|
repo = "jhead";
|
|
|
|
rev = version;
|
2023-06-24 09:57:50 +00:00
|
|
|
hash = "sha256-d1cuy4kkwY/21UcpNN6judrFxGVyEH+b+0TaZw9hP2E=";
|
2009-10-11 15:52:14 +00:00
|
|
|
};
|
|
|
|
|
2016-01-06 19:33:00 +00:00
|
|
|
buildInputs = [ libjpeg ];
|
|
|
|
|
2020-06-19 19:32:59 +00:00
|
|
|
makeFlags = [ "CPPFLAGS=" "CFLAGS=-O3" "LDFLAGS=" ];
|
2015-12-18 23:29:32 +00:00
|
|
|
|
2023-08-19 10:52:29 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
(
|
|
|
|
cd tests
|
|
|
|
patchShebangs runtests pretend-editor
|
|
|
|
./runtests
|
|
|
|
)
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2015-12-18 23:29:32 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p \
|
|
|
|
$out/bin \
|
|
|
|
$out/man/man1 \
|
2019-08-15 12:41:18 +00:00
|
|
|
$out/share/doc/${pname}-${version}
|
2015-12-18 23:29:32 +00:00
|
|
|
|
|
|
|
cp -v jhead $out/bin
|
|
|
|
cp -v jhead.1 $out/man/man1
|
2019-08-15 12:41:18 +00:00
|
|
|
cp -v *.txt $out/share/doc/${pname}-${version}
|
2009-10-11 15:52:14 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-06-24 09:57:50 +00:00
|
|
|
homepage = "https://www.sentex.net/~mwandel/jhead/";
|
2009-10-11 15:52:14 +00:00
|
|
|
description = "Exif Jpeg header manipulation tool";
|
2015-12-18 23:29:32 +00:00
|
|
|
license = licenses.publicDomain;
|
2018-07-22 19:50:19 +00:00
|
|
|
maintainers = with maintainers; [ rycee ];
|
2015-12-18 23:29:32 +00:00
|
|
|
platforms = platforms.all;
|
2023-11-23 02:51:17 +00:00
|
|
|
mainProgram = "jhead";
|
2009-10-11 15:52:14 +00:00
|
|
|
};
|
|
|
|
}
|