tonelib-zoom: fix meta.platforms

dan4ik a123ab3a d78a7264

+33 -23
+33 -23
pkgs/applications/audio/tonelib-zoom/default.nix
··· 1 - { stdenv 2 - , dpkg 3 - , lib 4 - , autoPatchelfHook 1 + { lib 2 + , stdenv 5 3 , fetchurl 6 - , webkitgtk 7 - , libjack2 4 + , autoPatchelfHook 5 + , dpkg 8 6 , alsa-lib 7 + , freetype 8 + , libglvnd 9 9 , curl 10 + , libXcursor 11 + , libXinerama 12 + , libXrandr 13 + , libXrender 14 + , libjack2 15 + , webkitgtk 10 16 }: 11 17 12 18 stdenv.mkDerivation rec { ··· 18 24 sha256 = "sha256-4q2vM0/q7o/FracnO2xxnr27opqfVQoN7fsqTD9Tr/c="; 19 25 }; 20 26 21 - buildInputs = [ 27 + nativeBuildInputs = [ 28 + autoPatchelfHook 22 29 dpkg 23 - webkitgtk 24 - libjack2 25 - alsa-lib 26 30 ]; 27 31 28 - nativeBuildInputs = [ 29 - autoPatchelfHook 32 + buildInputs = [ 33 + stdenv.cc.cc.lib 34 + alsa-lib 35 + freetype 36 + libglvnd 37 + webkitgtk 38 + ] ++ runtimeDependencies; 39 + 40 + runtimeDependencies = map lib.getLib [ 41 + curl 42 + libXcursor 43 + libXinerama 44 + libXrandr 45 + libXrender 46 + libjack2 30 47 ]; 31 48 32 - unpackPhase = '' 33 - mkdir -p $TMP/ $out/ 34 - dpkg -x $src $TMP 35 - ''; 49 + unpackCmd = "dpkg -x $curSrc source"; 36 50 37 51 installPhase = '' 38 - cp -R $TMP/usr/* $out/ 39 - mv $out/bin/ToneLib-Zoom $out/bin/tonelib-zoom 52 + mv usr $out 53 + substituteInPlace $out/share/applications/ToneLib-Zoom.desktop --replace /usr/ $out/ 40 54 ''; 41 - 42 - runtimeDependencies = [ 43 - (lib.getLib curl) 44 - ]; 45 55 46 56 meta = with lib; { 47 57 description = "ToneLib Zoom – change and save all the settings in your Zoom(r) guitar pedal"; 48 58 homepage = "https://tonelib.net/"; 49 59 license = licenses.unfree; 50 60 maintainers = with maintainers; [ dan4ik605743 ]; 51 - platforms = platforms.linux; 61 + platforms = [ "x86_64-linux" ]; 52 62 }; 53 63 }