diff --git a/pkgs/by-name/to/tonelib-metal/package.nix b/pkgs/by-name/to/tonelib-metal/package.nix index 6ada9248e7df..1286400c8bfe 100644 --- a/pkgs/by-name/to/tonelib-metal/package.nix +++ b/pkgs/by-name/to/tonelib-metal/package.nix @@ -15,14 +15,13 @@ libXrender, libjack2, }: - stdenv.mkDerivation rec { pname = "tonelib-metal"; - version = "1.2.6"; + version = "1.3.0"; src = fetchurl { - url = "https://tonelib.net/download/221222/ToneLib-Metal-amd64.deb"; - sha256 = "sha256-G80EKAsXomdk8GsnNyvjN8shz3YMKhqdWWYyVB7xTsU="; + url = "https://tonelib.vip/download/24-10-24/ToneLib-Metal-amd64.deb"; + hash = "sha256-H19ZUOFI7prQJPo9NWWAHSOwpZ4RIbpRJHfQVjDp/VA="; }; nativeBuildInputs = [ @@ -30,14 +29,6 @@ stdenv.mkDerivation rec { dpkg ]; - buildInputs = [ - (lib.getLib stdenv.cc.cc) - alsa-lib - freetype - libglvnd - mesa - ] ++ runtimeDependencies; - runtimeDependencies = map lib.getLib [ curl libXcursor @@ -47,16 +38,27 @@ stdenv.mkDerivation rec { libjack2 ]; - unpackCmd = "dpkg -x $curSrc source"; + buildInputs = [ + (lib.getLib stdenv.cc.cc) + alsa-lib + freetype + libglvnd + mesa + ] ++ runtimeDependencies; installPhase = '' - mv usr $out - substituteInPlace $out/share/applications/ToneLib-Metal.desktop --replace /usr/ $out/ + runHook preInstall + + cp -r usr $out + substituteInPlace $out/share/applications/ToneLib-Metal.desktop \ + --replace-fail "/usr/" "$out/" + + runHook postInstall ''; meta = { description = "ToneLib Metal – Guitar amp simulator targeted at metal players"; - homepage = "https://tonelib.net/"; + homepage = "https://tonelib.net"; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; license = lib.licenses.unfree; maintainers = with lib.maintainers; [ dan4ik605743 ];