Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, cmake, fetchFromGitHub, libmysofa, zlib }: 2 3stdenv.mkDerivation rec { 4 pname = "libspatialaudio"; 5 version = "0.3.0"; 6 7 src = fetchFromGitHub { 8 owner = "videolabs"; 9 repo = "libspatialaudio"; 10 rev = version; 11 hash = "sha256-sPnQPD41AceXM4uGqWXMYhuQv0TUkA6TZP8ChxUFIoI="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 buildInputs = [ libmysofa zlib ]; 16 17 postFixup = '' 18 substituteInPlace "''${!outputDev}/lib/pkgconfig/spatialaudio.pc" \ 19 --replace '-L${lib.getDev libmysofa}' '-L${lib.getLib libmysofa}' 20 ''; 21 22 meta = with lib; { 23 description = 24 "Ambisonic encoding / decoding and binauralization library in C++"; 25 homepage = "https://github.com/videolabs/libspatialaudio"; 26 license = licenses.lgpl21Plus; 27 platforms = platforms.linux; 28 maintainers = with maintainers; [ krav ]; 29 }; 30}