Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

lepton: enable on darwin

(cherry picked from commit 310b108efa5f7192bee0571c5641c5d1a46c7523)

authored by

Mario Rodas and committed by
Daiderd Jordan
06fe4b25 b460ece5

+4 -4
+4 -4
pkgs/tools/graphics/lepton/default.nix
··· 1 1 { stdenv, fetchFromGitHub, cmake, git, glibc }: 2 2 3 - stdenv.mkDerivation { 3 + stdenv.mkDerivation rec { 4 4 version = "1.2.1"; 5 5 pname = "lepton"; 6 6 7 7 src = fetchFromGitHub { 8 8 repo = "lepton"; 9 9 owner = "dropbox"; 10 - rev = "c378cbfa2daaa99e8828be7395013f94cedb1bcc"; 10 + rev = version; 11 11 sha256 = "1f2vyp0crj4yw27bs53vykf2fqk4w57gv3lh9dp89dh3y7wwh1ba"; 12 12 }; 13 13 14 14 nativeBuildInputs = [ cmake git ]; 15 - buildInputs = [ glibc.static ]; 15 + buildInputs = stdenv.lib.optionals stdenv.isLinux [ glibc.static ]; 16 16 17 17 meta = with stdenv.lib; { 18 18 homepage = https://github.com/dropbox/lepton; 19 19 description = "A tool to losslessly compress JPEGs"; 20 20 license = licenses.asl20; 21 - platforms = [ "x86_64-linux" ]; 21 + platforms = [ "x86_64-linux" "x86_64-darwin" ]; 22 22 maintainers = with maintainers; [ artemist ]; 23 23 }; 24 24 }