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
|
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
python3,
cairo,
libjpeg,
ntk,
libjack2,
libsndfile,
ladspa-header,
liblo,
libsigcxx,
lrdf,
waf,
}:
let
wafHook = (waf.override { extraTools = [ "gccdeps" ]; }).hook;
in
stdenv.mkDerivation {
pname = "non";
version = "unstable-2021-01-28";
src = fetchFromGitHub {
owner = "linuxaudio";
repo = "non";
rev = "cdad26211b301d2fad55a26812169ab905b85bbb";
hash = "sha256-iMJNMDytNXpEkUhL0RILSd25ixkm8HL/edtOZta0Pf4=";
};
nativeBuildInputs = [
pkg-config
wafHook
];
buildInputs = [
python3
cairo
libjpeg
ntk
libjack2
libsndfile
ladspa-header
liblo
libsigcxx
lrdf
];
# NOTE: non provides its own waf script that is incompatible with new
# python versions. If the script is not present, wafHook will install
# a compatible version from nixpkgs.
prePatch = ''
rm waf
'';
env.CXXFLAGS = "-std=c++14";
meta = {
description = "Lightweight and lightning fast modular Digital Audio Workstation";
homepage = "http://non.tuxfamily.org";
license = lib.licenses.lgpl21;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.nico202 ];
};
}
|