surge: migrate to by-name (#431574)

authored by Yohann Boniface and committed by GitHub 0b09e357 a2b5353b

+11 -15
+11 -11
pkgs/applications/audio/surge/default.nix pkgs/by-name/su/surge/package.nix
··· 5 5 fetchpatch, 6 6 fetchFromGitHub, 7 7 cmake, 8 - git, 8 + gitMinimal, 9 9 pkg-config, 10 10 python3, 11 11 cairo, ··· 20 20 rsync, 21 21 }: 22 22 23 - stdenv.mkDerivation rec { 23 + stdenv.mkDerivation (finalAttrs: { 24 24 pname = "surge"; 25 25 version = "1.9.0"; 26 26 27 27 src = fetchurl { 28 - url = "https://github.com/surge-synthesizer/releases/releases/download/${version}/SurgeSrc_${version}.tgz"; 29 - sha256 = "00af4lfcipl0rn0dn4gfipx7nbk8ym1mrmji8v0ar98frsrpxg4k"; 28 + url = "https://github.com/surge-synthesizer/releases/releases/download/${finalAttrs.version}/SurgeSrc_${finalAttrs.version}.tgz"; 29 + hash = "sha256-k7x+s84OpazARlHWXEP1aC57+o3uEduAzYDeyBwlTgE="; 30 30 }; 31 31 32 32 extraContent = fetchFromGitHub { ··· 36 36 # or: https://github.com/surge-synthesizer/surge/blob/main/cmake/stage-extra-content.cmake 37 37 # SURGE_EXTRA_CONTENT_HASH 38 38 rev = "afc591cc06d9adc3dc8dc515a55c66873fa10296"; 39 - sha256 = "1wqv86l70nwlrb10n47rib80f47a96j9qqg8w5dv46ys1sq2nz7z"; 39 + hash = "sha256-/3wrsA7aG7Jb4ehhnKRJ6hAH0Ir5EAvCypRbcKhBG/M="; 40 40 }; 41 41 42 42 patches = [ ··· 45 45 # Patch: https://github.com/surge-synthesizer/surge/pull/4845 46 46 (fetchpatch { 47 47 url = "https://github.com/surge-synthesizer/surge/commit/7a552038bab4b000d188ae425aa97963dc91db17.patch"; 48 - sha256 = "sha256-5Flf0uJqEK6e+sadB+vr6phdvvdZYXcFFfm4ywhAeW0="; 48 + hash = "sha256-5Flf0uJqEK6e+sadB+vr6phdvvdZYXcFFfm4ywhAeW0="; 49 49 name = "glibc_build_fix.patch"; 50 50 }) 51 51 ]; 52 52 53 53 nativeBuildInputs = [ 54 54 cmake 55 - git 55 + gitMinimal 56 56 pkg-config 57 57 python3 58 58 ]; ··· 92 92 build/surge-headless 93 93 ''; 94 94 95 - meta = with lib; { 95 + meta = { 96 96 description = '' 97 97 LV2 & VST3 synthesizer plug-in (previously released as Vember Audio 98 98 Surge) 99 99 ''; 100 100 homepage = "https://surge-synthesizer.github.io"; 101 - license = licenses.gpl3; 101 + license = lib.licenses.gpl3; 102 102 platforms = [ "x86_64-linux" ]; 103 - maintainers = with maintainers; [ 103 + maintainers = with lib.maintainers; [ 104 104 magnetophon 105 105 orivej 106 106 ]; 107 107 }; 108 - } 108 + })
-4
pkgs/top-level/all-packages.nix
··· 13553 13553 pythonBindings = true; 13554 13554 }; 13555 13555 13556 - surge = callPackage ../applications/audio/surge { 13557 - git = gitMinimal; 13558 - }; 13559 - 13560 13556 supersonic-wayland = supersonic.override { 13561 13557 waylandSupport = true; 13562 13558 };