Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 glib, 8 libsndfile, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "libinstpatch"; 13 version = "1.1.7"; 14 15 src = fetchFromGitHub { 16 owner = "swami"; 17 repo = "libinstpatch"; 18 rev = "v${version}"; 19 sha256 = "sha256-y3rmCQk3homgnWT/i/qhKJ6gRO8opMFnaC0T8d5UN48="; 20 }; 21 22 nativeBuildInputs = [ 23 cmake 24 pkg-config 25 ]; 26 27 propagatedBuildInputs = [ 28 glib 29 libsndfile 30 ]; # Both are needed for includes. 31 32 cmakeFlags = [ 33 "-DLIB_SUFFIX=" # Install in $out/lib. 34 ]; 35 36 meta = with lib; { 37 homepage = "http://www.swamiproject.org/"; 38 description = "MIDI instrument patch files support library"; 39 license = licenses.lgpl21; 40 maintainers = with maintainers; [ orivej ]; 41 platforms = platforms.unix; 42 }; 43}