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