2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, glib, libsndfile }:
|
2020-03-23 02:28:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libinstpatch";
|
2020-05-28 07:03:11 +01:00
|
|
|
version = "1.1.5";
|
2020-03-23 02:28:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swami";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-28 07:03:11 +01:00
|
|
|
sha256 = "0psx4hc5yksfd3k2xqsc7c8lbz2d4yybikyddyd9hlkhq979cmjb";
|
2020-03-23 02:28:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ glib libsndfile ]; # Both are needed for includes.
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DLIB_SUFFIX=" # Install in $out/lib.
|
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-09 05:54:15 +01:00
|
|
|
homepage = "http://www.swamiproject.org/";
|
2020-03-23 02:28:37 +00:00
|
|
|
description = "MIDI instrument patch files support library";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
2020-04-09 10:20:00 +01:00
|
|
|
platforms = platforms.unix;
|
2020-03-23 02:28:37 +00:00
|
|
|
};
|
|
|
|
}
|