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