2023-03-27 19:17:25 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libjpeg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.5.4";
|
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}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-cfPQTSINEdii/A2czAIxKDUw6RZOH4xZI7HnUmKuR9k=";
|
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;
|
|
|
|
};
|
|
|
|
}
|