2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, git, glibc }:
|
2019-02-20 22:09:14 +01:00
|
|
|
|
2020-02-14 10:20:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2020-06-18 14:37:44 +02:00
|
|
|
version = "2019-08-20";
|
|
|
|
pname = "lepton-unstable";
|
2019-02-20 22:09:14 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "lepton";
|
|
|
|
owner = "dropbox";
|
2020-06-18 14:37:44 +02:00
|
|
|
rev = "3d1bc19da9f13a6e817938afd0f61a81110be4da";
|
|
|
|
sha256 = "0aqs6nvcbq8cbfv8699fa634bsz7csmk0169n069yvv17d1c07fd";
|
2019-02-20 22:09:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake git ];
|
2021-01-15 10:19:50 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isLinux [ glibc.static ];
|
2019-02-20 22:09:14 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/dropbox/lepton";
|
2019-02-20 22:09:14 +01:00
|
|
|
description = "A tool to losslessly compress JPEGs";
|
2019-02-21 00:59:46 +01:00
|
|
|
license = licenses.asl20;
|
2020-02-14 10:20:00 +01:00
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
2019-02-21 00:59:46 +01:00
|
|
|
maintainers = with maintainers; [ artemist ];
|
2022-12-02 23:03:31 +01:00
|
|
|
knownVulnerabilities = [ "CVE-2022-4104" ];
|
2019-02-20 22:09:14 +01:00
|
|
|
};
|
|
|
|
}
|