at master 62 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 python3, 7 cairo, 8 libjpeg, 9 ntk, 10 libjack2, 11 libsndfile, 12 ladspaH, 13 liblo, 14 libsigcxx, 15 lrdf, 16 wafHook, 17}: 18 19stdenv.mkDerivation { 20 pname = "non"; 21 version = "unstable-2021-01-28"; 22 src = fetchFromGitHub { 23 owner = "linuxaudio"; 24 repo = "non"; 25 rev = "cdad26211b301d2fad55a26812169ab905b85bbb"; 26 sha256 = "sha256-iMJNMDytNXpEkUhL0RILSd25ixkm8HL/edtOZta0Pf4="; 27 }; 28 29 nativeBuildInputs = [ 30 pkg-config 31 wafHook 32 ]; 33 buildInputs = [ 34 python3 35 cairo 36 libjpeg 37 ntk 38 libjack2 39 libsndfile 40 ladspaH 41 liblo 42 libsigcxx 43 lrdf 44 ]; 45 46 # NOTE: non provides its own waf script that is incompatible with new 47 # python versions. If the script is not present, wafHook will install 48 # a compatible version from nixpkgs. 49 prePatch = '' 50 rm waf 51 ''; 52 53 env.CXXFLAGS = "-std=c++14"; 54 55 meta = { 56 description = "Lightweight and lightning fast modular Digital Audio Workstation"; 57 homepage = "http://non.tuxfamily.org"; 58 license = lib.licenses.lgpl21; 59 platforms = lib.platforms.linux; 60 maintainers = [ lib.maintainers.nico202 ]; 61 }; 62}