mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
Merge pull request #42679 from Moredread/vcvrack/init
vcv-rack: Init at 0.6.2b
This commit is contained in:
commit
b9c9a34d8c
|
@ -143,6 +143,12 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
|
||||||
free = false;
|
free = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cc-by-nc-40 = spdx {
|
||||||
|
spdxId = "CC-BY-NC-4.0";
|
||||||
|
fullName = "Creative Commons Attribution Non Commercial 4.0 International";
|
||||||
|
free = false;
|
||||||
|
};
|
||||||
|
|
||||||
cc-by-nd-30 = spdx {
|
cc-by-nd-30 = spdx {
|
||||||
spdxId = "CC-BY-ND-3.0";
|
spdxId = "CC-BY-ND-3.0";
|
||||||
fullName = "Creative Commons Attribution-No Derivative Works v3.00";
|
fullName = "Creative Commons Attribution-No Derivative Works v3.00";
|
||||||
|
|
79
pkgs/applications/audio/vcv-rack/default.nix
Normal file
79
pkgs/applications/audio/vcv-rack/default.nix
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
{ stdenv, makeWrapper, fetchFromBitbucket, fetchFromGitHub, pkgconfig
|
||||||
|
, alsaLib, curl, glew, glfw, gtk2-x11, jansson, libjack2, libXext, libXi
|
||||||
|
, libzip, rtaudio, rtmidi, speex }:
|
||||||
|
|
||||||
|
let
|
||||||
|
glfw-git = glfw.overrideAttrs (oldAttrs: {
|
||||||
|
name = "glfw-git-20180529";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "glfw";
|
||||||
|
repo = "glfw";
|
||||||
|
rev = "0be4f3f75aebd9d24583ee86590a38e741db0904";
|
||||||
|
sha256 = "0zbcjgc7ks25yi949k0wjknfl00a4dqmz45mhp00k62vlq2sj0i5";
|
||||||
|
};
|
||||||
|
buildInputs = oldAttrs.buildInputs ++ [ libXext libXi ];
|
||||||
|
});
|
||||||
|
pfft-source = fetchFromBitbucket {
|
||||||
|
owner = "jpommier";
|
||||||
|
repo = "pffft";
|
||||||
|
rev = "29e4f76ac53bef048938754f32231d7836401f79";
|
||||||
|
sha256 = "084csgqa6f1a270bhybjayrh3mpyi2jimc87qkdgsqcp8ycsx1l1";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
with stdenv.lib; stdenv.mkDerivation rec {
|
||||||
|
name = "VCV-Rack-${version}";
|
||||||
|
version = "0.6.2b";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "VCVRack";
|
||||||
|
repo = "Rack";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "17ynhxcci6dyn1yi871fd8yli4924fh12pmk510djwkcj5crhas6";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
ln -s ${pfft-source} dep/jpommier-pffft-source
|
||||||
|
|
||||||
|
mkdir -p dep/include
|
||||||
|
|
||||||
|
cp dep/jpommier-pffft-source/*.h dep/include
|
||||||
|
cp dep/nanosvg/src/*.h dep/include
|
||||||
|
cp dep/nanovg/src/*.h dep/include
|
||||||
|
cp dep/osdialog/*.h dep/include
|
||||||
|
cp dep/oui-blendish/*.h dep/include
|
||||||
|
|
||||||
|
substituteInPlace include/audio.hpp --replace "<RtAudio.h>" "<rtaudio/RtAudio.h>"
|
||||||
|
substituteInPlace compile.mk --replace "-march=nocona" ""
|
||||||
|
substituteInPlace Makefile \
|
||||||
|
--replace "-Wl,-Bstatic" "" \
|
||||||
|
--replace "-lglfw3" "-lglfw"
|
||||||
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
||||||
|
buildInputs = [ glfw-git alsaLib curl glew gtk2-x11 jansson libjack2 libzip rtaudio rtmidi speex ];
|
||||||
|
|
||||||
|
buildFlags = "Rack";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -D -m755 -t $out/bin Rack
|
||||||
|
cp -r res $out/
|
||||||
|
|
||||||
|
mkdir -p $out/share/rack
|
||||||
|
cp LICENSE.txt LICENSE-dist.txt $out/share/rack
|
||||||
|
|
||||||
|
# Override the default global resource file directory
|
||||||
|
wrapProgram $out/bin/Rack --add-flags "-g $out"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Open-source virtual modular synthesizer";
|
||||||
|
homepage = http://vcvrack.com/;
|
||||||
|
# The source is BSD-3 licensed, some of the art is CC-BY-NC 4.0 or unfree
|
||||||
|
license = [ licenses.bsd3 licenses.cc-by-nc-40 licenses.unfree ];
|
||||||
|
maintainers = with maintainers; [ moredread ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
|
@ -18663,6 +18663,8 @@ with pkgs;
|
||||||
|
|
||||||
vcprompt = callPackage ../applications/version-management/vcprompt { };
|
vcprompt = callPackage ../applications/version-management/vcprompt { };
|
||||||
|
|
||||||
|
vcv-rack = callPackage ../applications/audio/vcv-rack { };
|
||||||
|
|
||||||
vdirsyncer = callPackage ../tools/misc/vdirsyncer { };
|
vdirsyncer = callPackage ../tools/misc/vdirsyncer { };
|
||||||
|
|
||||||
vdpauinfo = callPackage ../tools/X11/vdpauinfo { };
|
vdpauinfo = callPackage ../tools/X11/vdpauinfo { };
|
||||||
|
|
Loading…
Reference in a new issue