Merge pull request #42679 from Moredread/vcvrack/init

vcv-rack: Init at 0.6.2b

authored by Silvan Mosberger and committed by GitHub b9c9a34d 810f91f4

+87
+6
lib/licenses.nix
··· 143 free = false; 144 }; 145 146 cc-by-nd-30 = spdx { 147 spdxId = "CC-BY-ND-3.0"; 148 fullName = "Creative Commons Attribution-No Derivative Works v3.00";
··· 143 free = false; 144 }; 145 146 + cc-by-nc-40 = spdx { 147 + spdxId = "CC-BY-NC-4.0"; 148 + fullName = "Creative Commons Attribution Non Commercial 4.0 International"; 149 + free = false; 150 + }; 151 + 152 cc-by-nd-30 = spdx { 153 spdxId = "CC-BY-ND-3.0"; 154 fullName = "Creative Commons Attribution-No Derivative Works v3.00";
+79
pkgs/applications/audio/vcv-rack/default.nix
···
··· 1 + { stdenv, makeWrapper, fetchFromBitbucket, fetchFromGitHub, pkgconfig 2 + , alsaLib, curl, glew, glfw, gtk2-x11, jansson, libjack2, libXext, libXi 3 + , libzip, rtaudio, rtmidi, speex }: 4 + 5 + let 6 + glfw-git = glfw.overrideAttrs (oldAttrs: { 7 + name = "glfw-git-20180529"; 8 + src = fetchFromGitHub { 9 + owner = "glfw"; 10 + repo = "glfw"; 11 + rev = "0be4f3f75aebd9d24583ee86590a38e741db0904"; 12 + sha256 = "0zbcjgc7ks25yi949k0wjknfl00a4dqmz45mhp00k62vlq2sj0i5"; 13 + }; 14 + buildInputs = oldAttrs.buildInputs ++ [ libXext libXi ]; 15 + }); 16 + pfft-source = fetchFromBitbucket { 17 + owner = "jpommier"; 18 + repo = "pffft"; 19 + rev = "29e4f76ac53bef048938754f32231d7836401f79"; 20 + sha256 = "084csgqa6f1a270bhybjayrh3mpyi2jimc87qkdgsqcp8ycsx1l1"; 21 + }; 22 + in 23 + with stdenv.lib; stdenv.mkDerivation rec { 24 + name = "VCV-Rack-${version}"; 25 + version = "0.6.2b"; 26 + 27 + src = fetchFromGitHub { 28 + owner = "VCVRack"; 29 + repo = "Rack"; 30 + rev = "v${version}"; 31 + sha256 = "17ynhxcci6dyn1yi871fd8yli4924fh12pmk510djwkcj5crhas6"; 32 + fetchSubmodules = true; 33 + }; 34 + 35 + prePatch = '' 36 + ln -s ${pfft-source} dep/jpommier-pffft-source 37 + 38 + mkdir -p dep/include 39 + 40 + cp dep/jpommier-pffft-source/*.h dep/include 41 + cp dep/nanosvg/src/*.h dep/include 42 + cp dep/nanovg/src/*.h dep/include 43 + cp dep/osdialog/*.h dep/include 44 + cp dep/oui-blendish/*.h dep/include 45 + 46 + substituteInPlace include/audio.hpp --replace "<RtAudio.h>" "<rtaudio/RtAudio.h>" 47 + substituteInPlace compile.mk --replace "-march=nocona" "" 48 + substituteInPlace Makefile \ 49 + --replace "-Wl,-Bstatic" "" \ 50 + --replace "-lglfw3" "-lglfw" 51 + ''; 52 + 53 + enableParallelBuilding = true; 54 + 55 + nativeBuildInputs = [ makeWrapper pkgconfig ]; 56 + buildInputs = [ glfw-git alsaLib curl glew gtk2-x11 jansson libjack2 libzip rtaudio rtmidi speex ]; 57 + 58 + buildFlags = "Rack"; 59 + 60 + installPhase = '' 61 + install -D -m755 -t $out/bin Rack 62 + cp -r res $out/ 63 + 64 + mkdir -p $out/share/rack 65 + cp LICENSE.txt LICENSE-dist.txt $out/share/rack 66 + 67 + # Override the default global resource file directory 68 + wrapProgram $out/bin/Rack --add-flags "-g $out" 69 + ''; 70 + 71 + meta = with stdenv.lib; { 72 + description = "Open-source virtual modular synthesizer"; 73 + homepage = http://vcvrack.com/; 74 + # The source is BSD-3 licensed, some of the art is CC-BY-NC 4.0 or unfree 75 + license = [ licenses.bsd3 licenses.cc-by-nc-40 licenses.unfree ]; 76 + maintainers = with maintainers; [ moredread ]; 77 + platforms = platforms.linux; 78 + }; 79 + }
+2
pkgs/top-level/all-packages.nix
··· 18663 18664 vcprompt = callPackage ../applications/version-management/vcprompt { }; 18665 18666 vdirsyncer = callPackage ../tools/misc/vdirsyncer { }; 18667 18668 vdpauinfo = callPackage ../tools/X11/vdpauinfo { };
··· 18663 18664 vcprompt = callPackage ../applications/version-management/vcprompt { }; 18665 18666 + vcv-rack = callPackage ../applications/audio/vcv-rack { }; 18667 + 18668 vdirsyncer = callPackage ../tools/misc/vdirsyncer { }; 18669 18670 vdpauinfo = callPackage ../tools/X11/vdpauinfo { };