2022-08-12 12:06:08 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libjpeg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "1.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "jpegoptim";
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tjko";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-22 12:36:57 +00:00
|
|
|
sha256 = "sha256-fTtNDjswxHv2kHU55RCzz9tdlXw+RUCSoe3qF4hQ7u4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# There are no checks, it seems.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [ libjpeg ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Optimize JPEG files";
|
|
|
|
homepage = "https://www.kokkonen.net/tjko/projects.html";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.aristid ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|