tonelib-metal: 1.2.6 -> 1.3.0

This commit is contained in:
aucub
2024-12-10 01:17:11 +08:00
parent 2c87ea374c
commit 75c8475e45
+18 -16
View File
@@ -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 ];