2019-02-20 22:09:14 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, git, glibc }:
|
|
|
|
|
2020-02-14 10:20:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-02-20 22:09:14 +01:00
|
|
|
version = "1.2.1";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "lepton";
|
2019-02-20 22:09:14 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "lepton";
|
|
|
|
owner = "dropbox";
|
2020-02-14 10:20:00 +01:00
|
|
|
rev = version;
|
2019-02-20 22:09:14 +01:00
|
|
|
sha256 = "1f2vyp0crj4yw27bs53vykf2fqk4w57gv3lh9dp89dh3y7wwh1ba";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake git ];
|
2020-02-14 10:20:00 +01:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isLinux [ glibc.static ];
|
2019-02-20 22:09:14 +01:00
|
|
|
|
2019-02-21 00:59:46 +01:00
|
|
|
meta = with stdenv.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 ];
|
2019-02-20 22:09:14 +01:00
|
|
|
};
|
|
|
|
}
|