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

25 lines
665 B
Nix
Raw Normal View History

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";
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
meta = with stdenv.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 ];
2019-02-20 22:09:14 +01:00
};
}