nixpkgs-suyu/pkgs/tools/graphics/lepton/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
753 B
Nix
Raw Normal View History

{ 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
meta = with lib; {
homepage = "https://github.com/dropbox/lepton";
2019-02-20 22:09:14 +01:00
description = "A tool to losslessly compress JPEGs";
license = licenses.asl20;
2020-02-14 10:20:00 +01:00
platforms = [ "x86_64-linux" "x86_64-darwin" ];
maintainers = with maintainers; [ artemist ];
knownVulnerabilities = [ "CVE-2022-4104" ];
2019-02-20 22:09:14 +01:00
};
}