2022-03-30 09:31:56 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchurl
|
|
|
|
|
, autoPatchelfHook
|
|
|
|
|
, dpkg
|
|
|
|
|
, alsa-lib
|
|
|
|
|
, freetype
|
|
|
|
|
, libglvnd
|
|
|
|
|
, mesa
|
|
|
|
|
, curl
|
|
|
|
|
, libXcursor
|
|
|
|
|
, libXinerama
|
|
|
|
|
, libXrandr
|
|
|
|
|
, libXrender
|
|
|
|
|
, libjack2
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "tonelib-metal";
|
2023-03-24 00:07:29 +00:00
|
|
|
|
version = "1.2.6";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-03-24 00:07:29 +00:00
|
|
|
|
url = "https://tonelib.net/download/221222/ToneLib-Metal-amd64.deb";
|
|
|
|
|
sha256 = "sha256-G80EKAsXomdk8GsnNyvjN8shz3YMKhqdWWYyVB7xTsU=";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook dpkg ];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
|
alsa-lib
|
|
|
|
|
freetype
|
|
|
|
|
libglvnd
|
|
|
|
|
mesa
|
|
|
|
|
] ++ runtimeDependencies;
|
|
|
|
|
|
|
|
|
|
runtimeDependencies = map lib.getLib [
|
|
|
|
|
curl
|
|
|
|
|
libXcursor
|
|
|
|
|
libXinerama
|
|
|
|
|
libXrandr
|
|
|
|
|
libXrender
|
|
|
|
|
libjack2
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
unpackCmd = "dpkg -x $curSrc source";
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
mv usr $out
|
|
|
|
|
substituteInPlace $out/share/applications/ToneLib-Metal.desktop --replace /usr/ $out/
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "ToneLib Metal – Guitar amp simulator targeted at metal players";
|
|
|
|
|
homepage = "https://tonelib.net/";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
license = licenses.unfree;
|
|
|
|
|
maintainers = with maintainers; [ dan4ik605743 ];
|
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
mainProgram = "ToneLib-Metal";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
};
|
|
|
|
|
}
|