diff options
author | dan4ik <6057430gu@gmail.com> | 2021-11-06 01:14:47 +0700 |
---|---|---|
committer | dan4ik <6057430gu@gmail.com> | 2021-11-06 01:14:47 +0700 |
commit | a123ab3a7229bdf05a456e663a6d5469ecff04eb (patch) | |
tree | d05f5c985ef59ecc3c063970480b347908d4570b /pkgs/applications/audio/tonelib-zoom | |
parent | d78a7264c6b4892062f4561d7e9881a60eafdff9 (diff) |
tonelib-zoom: fix meta.platforms
Diffstat (limited to 'pkgs/applications/audio/tonelib-zoom')
-rw-r--r-- | pkgs/applications/audio/tonelib-zoom/default.nix | 56 |
1 files changed, 33 insertions, 23 deletions
diff --git a/pkgs/applications/audio/tonelib-zoom/default.nix b/pkgs/applications/audio/tonelib-zoom/default.nix index 2eef1f7bd6098..41539503e0203 100644 --- a/pkgs/applications/audio/tonelib-zoom/default.nix +++ b/pkgs/applications/audio/tonelib-zoom/default.nix @@ -1,12 +1,18 @@ -{ stdenv -, dpkg -, lib -, autoPatchelfHook +{ lib +, stdenv , fetchurl -, webkitgtk -, libjack2 +, autoPatchelfHook +, dpkg , alsa-lib +, freetype +, libglvnd , curl +, libXcursor +, libXinerama +, libXrandr +, libXrender +, libjack2 +, webkitgtk }: stdenv.mkDerivation rec { @@ -18,36 +24,40 @@ stdenv.mkDerivation rec { sha256 = "sha256-4q2vM0/q7o/FracnO2xxnr27opqfVQoN7fsqTD9Tr/c="; }; - buildInputs = [ + nativeBuildInputs = [ + autoPatchelfHook dpkg - webkitgtk - libjack2 - alsa-lib ]; - nativeBuildInputs = [ - autoPatchelfHook + buildInputs = [ + stdenv.cc.cc.lib + alsa-lib + freetype + libglvnd + webkitgtk + ] ++ runtimeDependencies; + + runtimeDependencies = map lib.getLib [ + curl + libXcursor + libXinerama + libXrandr + libXrender + libjack2 ]; - unpackPhase = '' - mkdir -p $TMP/ $out/ - dpkg -x $src $TMP - ''; + unpackCmd = "dpkg -x $curSrc source"; installPhase = '' - cp -R $TMP/usr/* $out/ - mv $out/bin/ToneLib-Zoom $out/bin/tonelib-zoom + mv usr $out + substituteInPlace $out/share/applications/ToneLib-Zoom.desktop --replace /usr/ $out/ ''; - runtimeDependencies = [ - (lib.getLib curl) - ]; - meta = with lib; { description = "ToneLib Zoom – change and save all the settings in your Zoom(r) guitar pedal"; homepage = "https://tonelib.net/"; license = licenses.unfree; maintainers = with maintainers; [ dan4ik605743 ]; - platforms = platforms.linux; + platforms = [ "x86_64-linux" ]; }; } |