1 { lib, stdenv, fetchFromGitHub, cmake, git, glibc }:
3 stdenv.mkDerivation rec {
4 version = "2019-08-20";
5 pname = "lepton-unstable";
7 src = fetchFromGitHub {
10 rev = "3d1bc19da9f13a6e817938afd0f61a81110be4da";
11 sha256 = "0aqs6nvcbq8cbfv8699fa634bsz7csmk0169n069yvv17d1c07fd";
14 nativeBuildInputs = [ cmake git ];
15 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ glibc.static ];
18 homepage = "https://github.com/dropbox/lepton";
19 description = "Tool to losslessly compress JPEGs";
20 license = licenses.asl20;
21 platforms = [ "x86_64-linux" "x86_64-darwin" ];
22 maintainers = with maintainers; [ artemist ];
23 knownVulnerabilities = [ "CVE-2022-4104" ];