surge: 1.8.1 -> 1.9.0

authored by

Bart Brouns and committed by
Jonathan Ringer
a72c8a1d 2681f3a3

+23 -18
+23 -18
pkgs/applications/audio/surge/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, git, pkg-config, python3 2 , cairo, libsndfile, libxcb, libxkbcommon, xcbutil, xcbutilcursor, xcbutilkeysyms, zenity 3 }: 4 5 stdenv.mkDerivation rec { 6 pname = "surge"; 7 - version = "1.8.1"; 8 9 - src = fetchFromGitHub { 10 owner = "surge-synthesizer"; 11 - repo = pname; 12 - rev = "release_${version}"; 13 - sha256 = "0lla860g7zgn9n1zgy14g4j72d5n5y7isyxz2w5xy2fzdpdg24ql"; 14 - leaveDotGit = true; # for SURGE_VERSION 15 - fetchSubmodules = true; 16 }; 17 - 18 nativeBuildInputs = [ cmake git pkg-config python3 ]; 19 - buildInputs = [ cairo libsndfile libxcb libxkbcommon xcbutil xcbutilcursor xcbutilkeysyms zenity ]; 20 21 postPatch = '' 22 substituteInPlace src/common/SurgeStorage.cpp --replace "/usr/share/Surge" "$out/share/surge" 23 substituteInPlace src/linux/UserInteractionsLinux.cpp --replace '"zenity' '"${zenity}/bin/zenity' 24 - substituteInPlace vstgui.surge/vstgui/lib/platform/linux/x11fileselector.cpp --replace /usr/bin/zenity ${zenity}/bin/zenity 25 - patchShebangs scripts/linux/emit-vector-piggy 26 - patchShebangs scripts/linux/generate-lv2-ttl 27 ''; 28 29 installPhase = '' 30 - mkdir -p $out/lib/lv2 $out/lib/vst3 $out/share/surge 31 - cp -r surge_products/Surge.lv2 $out/lib/lv2/ 32 - cp -r surge_products/Surge.vst3 $out/lib/vst3/ 33 - cp -r ../resources/data/* $out/share/surge/ 34 ''; 35 36 doInstallCheck = true; 37 installCheckPhase = '' 38 - cd .. 39 build/surge-headless 40 ''; 41
··· 1 + { stdenv, lib, fetchurl, fetchFromGitHub, cmake, git, pkg-config, python3 2 , cairo, libsndfile, libxcb, libxkbcommon, xcbutil, xcbutilcursor, xcbutilkeysyms, zenity 3 + , curl, rsync 4 }: 5 6 stdenv.mkDerivation rec { 7 pname = "surge"; 8 + version = "1.9.0"; 9 + 10 + src = fetchurl { 11 + url = "https://github.com/surge-synthesizer/releases/releases/download/${version}/SurgeSrc_${version}.tgz"; 12 + sha256 = "00af4lfcipl0rn0dn4gfipx7nbk8ym1mrmji8v0ar98frsrpxg4k"; 13 + }; 14 15 + extraContent = fetchFromGitHub { 16 owner = "surge-synthesizer"; 17 + repo = "surge-extra-content"; 18 + # rev from: https://github.com/surge-synthesizer/surge/blob/release_1.8.1/cmake/stage-extra-content.cmake#L6 19 + # or: https://github.com/surge-synthesizer/surge/blob/main/cmake/stage-extra-content.cmake 20 + # SURGE_EXTRA_CONTENT_HASH 21 + rev = "afc591cc06d9adc3dc8dc515a55c66873fa10296"; 22 + sha256 = "1wqv86l70nwlrb10n47rib80f47a96j9qqg8w5dv46ys1sq2nz7z"; 23 }; 24 nativeBuildInputs = [ cmake git pkg-config python3 ]; 25 + buildInputs = [ cairo libsndfile libxcb libxkbcommon xcbutil xcbutilcursor xcbutilkeysyms zenity curl rsync ]; 26 27 postPatch = '' 28 substituteInPlace src/common/SurgeStorage.cpp --replace "/usr/share/Surge" "$out/share/surge" 29 substituteInPlace src/linux/UserInteractionsLinux.cpp --replace '"zenity' '"${zenity}/bin/zenity' 30 + patchShebangs scripts/linux/ 31 + cp -r $extraContent/Skins/ resources/data/skins 32 ''; 33 34 + 35 installPhase = '' 36 + cd .. 37 + cmake --build build --config Release --target install-everything-global 38 ''; 39 40 doInstallCheck = true; 41 installCheckPhase = '' 42 + export HOME=$(mktemp -d) 43 + export SURGE_DISABLE_NETWORK_TESTS=TRUE 44 build/surge-headless 45 ''; 46