Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 pkg-config, 6 meson, 7 ninja, 8 lv2, 9 sord, 10 libX11, 11 libXext, 12 glew, 13 lv2lint, 14 pname, 15 version, 16 sha256, 17 description, 18 url ? "https://git.open-music-kontrollers.ch/lv2/${pname}.lv2/snapshot/${pname}.lv2-${version}.tar.xz", 19 additionalBuildInputs ? [ ], 20 postPatch ? "", 21 ... 22}: 23 24stdenv.mkDerivation { 25 inherit pname; 26 27 inherit version; 28 29 inherit postPatch; 30 31 src = fetchurl { 32 url = url; 33 sha256 = sha256; 34 }; 35 nativeBuildInputs = [ 36 pkg-config 37 meson 38 ninja 39 ]; 40 buildInputs = [ 41 lv2 42 sord 43 libX11 44 libXext 45 glew 46 lv2lint 47 ] 48 ++ additionalBuildInputs; 49 50 meta = with lib; { 51 broken = stdenv.hostPlatform.isDarwin; 52 description = description; 53 homepage = "https://open-music-kontrollers.ch/lv2/${pname}:"; 54 license = licenses.artistic2; 55 maintainers = [ maintainers.magnetophon ]; 56 platforms = platforms.all; 57 }; 58}