@@ -1,65 +1,58 @@
1−{ stdenv
2−, dpkg
3−, lib
4−, autoPatchelfHook
1+{ lib
2+, stdenv
53, fetchurl
6−, gtk3
7−, glib
8−, desktop-file-utils
4+, autoPatchelfHook
5+, dpkg
96, alsa-lib
10−, libjack2
11−, harfbuzz
12−, fribidi
13−, pango
147, freetype
8+, libglvnd
159, curl
10+, libXcursor
11+, libXinerama
12+, libXrandr
13+, libXrender
14+, libjack2
1615}:
1716
1817stdenv.mkDerivation rec {
1918 pname = "tonelib-gfx";
20− version = "4.6.6";
19+ version = "4.7.0";
2120
2221 src = fetchurl {
23− url = "https://www.tonelib.net/download/0509/ToneLib-GFX-amd64.deb";
24− sha256 = "sha256-wdX3SQSr0IZHsTUl+1Y0iETme3gTyryexhZ/9XHkGeo=";
22+ url = "https://www.tonelib.net/download/0930/ToneLib-GFX-amd64.deb";
23+ hash = "sha256-BcbX0dz94B4mj6QeQsnuZmwXAaXH+yJjnrUPgEYVqkU=";
2524 };
2625
26+ nativeBuildInputs = [ autoPatchelfHook dpkg ];
27+
2728 buildInputs = [
28− dpkg
29− gtk3
30− glib
31− desktop-file-utils
29+ stdenv.cc.cc.lib
3230 alsa-lib
33− libjack2
34− harfbuzz
35− fribidi
36− pango
3731 freetype
32+ libglvnd
33+ ] ++ runtimeDependencies;
34+
35+ runtimeDependencies = map lib.getLib [
36+ curl
37+ libXcursor
38+ libXinerama
39+ libXrandr
40+ libXrender
41+ libjack2
3842 ];
3943
40− nativeBuildInputs = [
41− autoPatchelfHook
42− ];
43−
44− unpackPhase = ''
45− mkdir -p $TMP/ $out/
46− dpkg -x $src $TMP
47− '';
44+ unpackCmd = "dpkg -x $curSrc source";
4845
4946 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− ];
47+ mv usr $out
48+ substituteInPlace $out/share/applications/ToneLib-GFX.desktop --replace /usr/ $out/
49+ '';
5750
5851 meta = with lib; {
5952 description = "Tonelib GFX is an amp and effects modeling software for electric guitar and bass.";
6053 homepage = "https://tonelib.net/";
6154 license = licenses.unfree;
62− maintainers = with maintainers; [ dan4ik605743 ];
63− platforms = platforms.linux;
55+ maintainers = with maintainers; [ dan4ik605743 orivej ];
56+ platforms = [ "x86_64-linux" ];
6457 };
6558}