summary refs log tree commit diff
path: root/pkgs/applications/audio/i-score/default.nix
blob: daedb9b98206c9ac56f679334c6ed1c0d95569a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
  alsaLib,
  boost,
  cln,
  cmake,
  fetchFromGitHub,
  gcc,
  ginac,
  jamomacore,
  kdnssd,
  libsndfile,
  ninja,
  portaudio,
  portmidi,
  qtbase,
  qtdeclarative,
  qtimageformats,
  qtmultimedia,
  qtquickcontrols2,
  qtserialport,
  qtsvg,
  qttools,
  qtwebsockets,
  rtaudio,
  stdenv
}:

stdenv.mkDerivation rec {
  version = "1.0.0-b31";
  pname = "i-score";

  src = fetchFromGitHub {
    owner = "OSSIA";
    repo = "i-score";
    rev = "v${version}";
    sha256 = "0g7s6n11w3wflrv5i2047dxx56lryms7xj0mznnlk5bii7g8dxzb";
    fetchSubmodules = true;
  };

  buildInputs = [
    alsaLib
    boost
    cln
    cmake
    ginac
    gcc
    jamomacore
    kdnssd
    libsndfile
    ninja
    portaudio
    portmidi
    qtbase
    qtdeclarative
    qtimageformats
    qtmultimedia
    qtquickcontrols2
    qtserialport
    qtsvg
    qttools
    qtwebsockets
    rtaudio
  ];

  cmakeFlags = [
    "-GNinja"
    "-DISCORE_CONFIGURATION=static-release"
    "-DISCORE_ENABLE_LTO=OFF"
    "-DISCORE_BUILD_FOR_PACKAGE_MANAGER=True"
  ];

  preConfigure = ''
    export CMAKE_PREFIX_PATH="''${CMAKE_PREFIX_PATH-}:$(echo "${jamomacore}/jamoma/share/cmake/Jamoma")"
  '';

  postInstall = ''rm $out/bin/i-score.sh'';

  meta = {
    description = "An interactive sequencer for the intermedia arts";
    homepage = "http://i-score.org/";
    license = stdenv.lib.licenses.cecill20;
    maintainers = [ stdenv.lib.maintainers.magnetophon ];
    platforms = stdenv.lib.platforms.linux;
  };
}