1{ lib, stdenv, fetchFromGitHub, boost, cairo, lv2, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "string-machine";
5 version = "unstable-2020-01-20";
6
7 src = fetchFromGitHub {
8 owner = "jpcima";
9 repo = pname;
10 rev = "188082dd0beb9a3c341035604841c53675fe66c4";
11 sha256 = "0l9xrzp3f0hk6h320qh250a0n1nbd6qhjmab21sjmrlb4ngy672v";
12 fetchSubmodules = true;
13 };
14
15 postPatch = ''
16 patchShebangs ./dpf/utils/generate-ttl.sh
17 '';
18
19 nativeBuildInputs = [ pkg-config ];
20
21 buildInputs = [
22 boost cairo lv2
23 ];
24
25 makeFlags = [
26 "PREFIX=$(out)"
27 ];
28
29 meta = with lib; {
30 homepage = "https://github.com/jpcima/string-machine";
31 description = "Digital model of electronic string ensemble instrument";
32 maintainers = [ maintainers.magnetophon ];
33 platforms = intersectLists platforms.linux platforms.x86;
34 license = licenses.boost;
35 };
36}