2021-10-20 13:43:27 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-06-23 13:23:31 +00:00
|
|
|
, fetchurl
|
2021-10-20 13:43:27 +00:00
|
|
|
, autoPatchelfHook
|
|
|
|
, dpkg
|
2021-06-23 13:23:31 +00:00
|
|
|
, alsa-lib
|
|
|
|
, freetype
|
2021-10-20 13:43:27 +00:00
|
|
|
, libglvnd
|
2021-07-20 14:51:34 +00:00
|
|
|
, curl
|
2021-10-20 13:43:27 +00:00
|
|
|
, libXcursor
|
|
|
|
, libXinerama
|
|
|
|
, libXrandr
|
|
|
|
, libXrender
|
|
|
|
, libjack2
|
2021-06-23 13:23:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tonelib-gfx";
|
2023-03-20 01:49:57 +00:00
|
|
|
version = "4.7.8";
|
2021-06-23 13:23:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-03-20 01:49:57 +00:00
|
|
|
url = "https://tonelib.net/download/221222/ToneLib-GFX-amd64.deb";
|
|
|
|
hash = "sha256-1sTwHqQYqNloZ3XSwhryqlW7b1FHh4ymtj3rKUcVZIo=";
|
2021-06-23 13:23:31 +00:00
|
|
|
};
|
|
|
|
|
2021-10-20 13:43:27 +00:00
|
|
|
nativeBuildInputs = [ autoPatchelfHook dpkg ];
|
|
|
|
|
2021-06-23 13:23:31 +00:00
|
|
|
buildInputs = [
|
2021-10-20 13:43:27 +00:00
|
|
|
stdenv.cc.cc.lib
|
2021-06-23 13:23:31 +00:00
|
|
|
alsa-lib
|
|
|
|
freetype
|
2021-10-20 13:43:27 +00:00
|
|
|
libglvnd
|
|
|
|
] ++ runtimeDependencies;
|
|
|
|
|
|
|
|
runtimeDependencies = map lib.getLib [
|
|
|
|
curl
|
|
|
|
libXcursor
|
|
|
|
libXinerama
|
|
|
|
libXrandr
|
|
|
|
libXrender
|
|
|
|
libjack2
|
2021-06-23 13:23:31 +00:00
|
|
|
];
|
|
|
|
|
2021-10-20 13:43:27 +00:00
|
|
|
unpackCmd = "dpkg -x $curSrc source";
|
2021-06-23 13:23:31 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-10-20 13:43:27 +00:00
|
|
|
mv usr $out
|
|
|
|
substituteInPlace $out/share/applications/ToneLib-GFX.desktop --replace /usr/ $out/
|
|
|
|
'';
|
2021-07-20 14:51:34 +00:00
|
|
|
|
2021-06-23 13:23:31 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Tonelib GFX is an amp and effects modeling software for electric guitar and bass.";
|
|
|
|
homepage = "https://tonelib.net/";
|
2022-06-04 22:19:25 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2021-06-23 13:23:31 +00:00
|
|
|
license = licenses.unfree;
|
2021-10-20 13:43:27 +00:00
|
|
|
maintainers = with maintainers; [ dan4ik605743 orivej ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "ToneLib-GFX";
|
2021-06-23 13:23:31 +00:00
|
|
|
};
|
|
|
|
}
|