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