nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, cmake, pkg-config, glib, libsndfile }:
2
3stdenv.mkDerivation rec {
4 pname = "libinstpatch";
5 version = "1.1.5";
6
7 src = fetchFromGitHub {
8 owner = "swami";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "0psx4hc5yksfd3k2xqsc7c8lbz2d4yybikyddyd9hlkhq979cmjb";
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 stdenv.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}