tonelib-gfx: 4.6.6 -> 4.7.0 (#142259)

Fix runtime dependencies:
- libjack2 is needed for jack output
- libX* are needed to properly render the GUI

Missing runtime dependencies were discovered by running:
strace -fe open,openat ToneLib-GFX |& grep glibc | grep ENOENT

authored by

Orivej Desh and committed by
GitHub
0d20bfd7 6c91deb3

+31 -38
+31 -38
pkgs/applications/audio/tonelib-gfx/default.nix
··· 1 - { stdenv 2 - , dpkg 3 - , lib 4 - , autoPatchelfHook 5 , fetchurl 6 - , gtk3 7 - , glib 8 - , desktop-file-utils 9 , alsa-lib 10 - , libjack2 11 - , harfbuzz 12 - , fribidi 13 - , pango 14 , freetype 15 , curl 16 }: 17 18 stdenv.mkDerivation rec { 19 pname = "tonelib-gfx"; 20 - version = "4.6.6"; 21 22 src = fetchurl { 23 - url = "https://www.tonelib.net/download/0509/ToneLib-GFX-amd64.deb"; 24 - sha256 = "sha256-wdX3SQSr0IZHsTUl+1Y0iETme3gTyryexhZ/9XHkGeo="; 25 }; 26 27 buildInputs = [ 28 - dpkg 29 - gtk3 30 - glib 31 - desktop-file-utils 32 alsa-lib 33 - libjack2 34 - harfbuzz 35 - fribidi 36 - pango 37 freetype 38 - ]; 39 40 - nativeBuildInputs = [ 41 - autoPatchelfHook 42 ]; 43 44 - unpackPhase = '' 45 - mkdir -p $TMP/ $out/ 46 - dpkg -x $src $TMP 47 - ''; 48 49 installPhase = '' 50 - cp -R $TMP/usr/* $out/ 51 - mv $out/bin/ToneLib-GFX $out/bin/tonelib-gfx 52 - ''; 53 - 54 - runtimeDependencies = [ 55 - (lib.getLib curl) 56 - ]; 57 58 meta = with lib; { 59 description = "Tonelib GFX is an amp and effects modeling software for electric guitar and bass."; 60 homepage = "https://tonelib.net/"; 61 license = licenses.unfree; 62 - maintainers = with maintainers; [ dan4ik605743 ]; 63 - platforms = platforms.linux; 64 }; 65 }
··· 1 + { lib 2 + , stdenv 3 , fetchurl 4 + , autoPatchelfHook 5 + , dpkg 6 , alsa-lib 7 , freetype 8 + , libglvnd 9 , curl 10 + , libXcursor 11 + , libXinerama 12 + , libXrandr 13 + , libXrender 14 + , libjack2 15 }: 16 17 stdenv.mkDerivation rec { 18 pname = "tonelib-gfx"; 19 + version = "4.7.0"; 20 21 src = fetchurl { 22 + url = "https://www.tonelib.net/download/0930/ToneLib-GFX-amd64.deb"; 23 + hash = "sha256-BcbX0dz94B4mj6QeQsnuZmwXAaXH+yJjnrUPgEYVqkU="; 24 }; 25 26 + nativeBuildInputs = [ autoPatchelfHook dpkg ]; 27 + 28 buildInputs = [ 29 + stdenv.cc.cc.lib 30 alsa-lib 31 freetype 32 + libglvnd 33 + ] ++ runtimeDependencies; 34 35 + runtimeDependencies = map lib.getLib [ 36 + curl 37 + libXcursor 38 + libXinerama 39 + libXrandr 40 + libXrender 41 + libjack2 42 ]; 43 44 + unpackCmd = "dpkg -x $curSrc source"; 45 46 installPhase = '' 47 + mv usr $out 48 + substituteInPlace $out/share/applications/ToneLib-GFX.desktop --replace /usr/ $out/ 49 + ''; 50 51 meta = with lib; { 52 description = "Tonelib GFX is an amp and effects modeling software for electric guitar and bass."; 53 homepage = "https://tonelib.net/"; 54 license = licenses.unfree; 55 + maintainers = with maintainers; [ dan4ik605743 orivej ]; 56 + platforms = [ "x86_64-linux" ]; 57 }; 58 }