surge: 1.8.1 -> 1.9.0
This commit is contained in:
parent
2681f3a3c0
commit
a72c8a1d1c
@ -1,41 +1,46 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, cmake, git, pkg-config, python3
|
{ stdenv, lib, fetchurl, fetchFromGitHub, cmake, git, pkg-config, python3
|
||||||
, cairo, libsndfile, libxcb, libxkbcommon, xcbutil, xcbutilcursor, xcbutilkeysyms, zenity
|
, cairo, libsndfile, libxcb, libxkbcommon, xcbutil, xcbutilcursor, xcbutilkeysyms, zenity
|
||||||
|
, curl, rsync
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "surge";
|
pname = "surge";
|
||||||
version = "1.8.1";
|
version = "1.9.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchurl {
|
||||||
owner = "surge-synthesizer";
|
url = "https://github.com/surge-synthesizer/releases/releases/download/${version}/SurgeSrc_${version}.tgz";
|
||||||
repo = pname;
|
sha256 = "00af4lfcipl0rn0dn4gfipx7nbk8ym1mrmji8v0ar98frsrpxg4k";
|
||||||
rev = "release_${version}";
|
|
||||||
sha256 = "0lla860g7zgn9n1zgy14g4j72d5n5y7isyxz2w5xy2fzdpdg24ql";
|
|
||||||
leaveDotGit = true; # for SURGE_VERSION
|
|
||||||
fetchSubmodules = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraContent = fetchFromGitHub {
|
||||||
|
owner = "surge-synthesizer";
|
||||||
|
repo = "surge-extra-content";
|
||||||
|
# rev from: https://github.com/surge-synthesizer/surge/blob/release_1.8.1/cmake/stage-extra-content.cmake#L6
|
||||||
|
# or: https://github.com/surge-synthesizer/surge/blob/main/cmake/stage-extra-content.cmake
|
||||||
|
# SURGE_EXTRA_CONTENT_HASH
|
||||||
|
rev = "afc591cc06d9adc3dc8dc515a55c66873fa10296";
|
||||||
|
sha256 = "1wqv86l70nwlrb10n47rib80f47a96j9qqg8w5dv46ys1sq2nz7z";
|
||||||
|
};
|
||||||
nativeBuildInputs = [ cmake git pkg-config python3 ];
|
nativeBuildInputs = [ cmake git pkg-config python3 ];
|
||||||
buildInputs = [ cairo libsndfile libxcb libxkbcommon xcbutil xcbutilcursor xcbutilkeysyms zenity ];
|
buildInputs = [ cairo libsndfile libxcb libxkbcommon xcbutil xcbutilcursor xcbutilkeysyms zenity curl rsync ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/common/SurgeStorage.cpp --replace "/usr/share/Surge" "$out/share/surge"
|
substituteInPlace src/common/SurgeStorage.cpp --replace "/usr/share/Surge" "$out/share/surge"
|
||||||
substituteInPlace src/linux/UserInteractionsLinux.cpp --replace '"zenity' '"${zenity}/bin/zenity'
|
substituteInPlace src/linux/UserInteractionsLinux.cpp --replace '"zenity' '"${zenity}/bin/zenity'
|
||||||
substituteInPlace vstgui.surge/vstgui/lib/platform/linux/x11fileselector.cpp --replace /usr/bin/zenity ${zenity}/bin/zenity
|
patchShebangs scripts/linux/
|
||||||
patchShebangs scripts/linux/emit-vector-piggy
|
cp -r $extraContent/Skins/ resources/data/skins
|
||||||
patchShebangs scripts/linux/generate-lv2-ttl
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/lib/lv2 $out/lib/vst3 $out/share/surge
|
cd ..
|
||||||
cp -r surge_products/Surge.lv2 $out/lib/lv2/
|
cmake --build build --config Release --target install-everything-global
|
||||||
cp -r surge_products/Surge.vst3 $out/lib/vst3/
|
|
||||||
cp -r ../resources/data/* $out/share/surge/
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
cd ..
|
export HOME=$(mktemp -d)
|
||||||
|
export SURGE_DISABLE_NETWORK_TESTS=TRUE
|
||||||
build/surge-headless
|
build/surge-headless
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user