Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 meson, 7 ninja, 8 boost, 9 nlohmann_json, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "libpisp"; 14 version = "1.2.1"; 15 16 src = fetchFromGitHub { 17 owner = "raspberrypi"; 18 repo = "libpisp"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-YshU7G5Rov67CVwFbf5ENp2j5ptAvkVrlMu85KmnEpk="; 21 }; 22 23 nativeBuildInputs = [ 24 pkg-config 25 meson 26 ninja 27 ]; 28 buildInputs = [ 29 boost 30 nlohmann_json 31 ]; 32 33 meta = with lib; { 34 homepage = "https://github.com/raspberrypi/libpisp"; 35 description = "Helper library to generate run-time configuration for the Raspberry Pi ISP (PiSP), consisting of the Frontend and Backend hardware components"; 36 license = licenses.bsd2; 37 platforms = platforms.all; 38 }; 39})