1{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, glib, libsndfile }:
2
3stdenv.mkDerivation rec {
4 pname = "libinstpatch";
5 version = "1.1.6";
6
7 src = fetchFromGitHub {
8 owner = "swami";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-OU6/slrPDgzn9tvXZJKSWbcFbpS/EAsOi52FtjeYdvA=";
12 };
13
14 nativeBuildInputs = [ cmake pkg-config ];
15
16 propagatedBuildInputs = [ glib libsndfile ]; # Both are needed for includes.
17
18 cmakeFlags = [
19 "-DLIB_SUFFIX=" # Install in $out/lib.
20 ];
21
22 meta = with lib; {
23 homepage = "http://www.swamiproject.org/";
24 description = "MIDI instrument patch files support library";
25 license = licenses.lgpl21;
26 maintainers = with maintainers; [ orivej ];
27 platforms = platforms.unix;
28 };
29}