Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 38 lines 659 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5, gumbo 6}: 7 8stdenv.mkDerivation rec { 9 pname = "litehtml"; 10 version = "0.6"; 11 12 src = fetchFromGitHub { 13 owner = "litehtml"; 14 repo = "litehtml"; 15 rev = "v${version}"; 16 hash = "sha256-9571d3k8RkzEpMWPuIejZ7njLmYstSwFUaSqT3sk6uQ="; 17 }; 18 19 nativeBuildInputs = [ 20 cmake 21 ]; 22 23 buildInputs = [ 24 gumbo 25 ]; 26 27 cmakeFlags = [ 28 "-DEXTERNAL_GUMBO=ON" 29 ]; 30 31 meta = with lib; { 32 description = "Fast and lightweight HTML/CSS rendering engine"; 33 homepage = "http://www.litehtml.com/"; 34 license = licenses.bsd3; 35 platforms = platforms.all; 36 maintainers = with maintainers; [ fgaz ]; 37 }; 38}