2021-12-06 16:07:01 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
2021-07-14 22:03:04 +00:00
|
|
|
|
, fetchurl
|
2021-12-06 16:07:01 +00:00
|
|
|
|
, autoPatchelfHook
|
|
|
|
|
, dpkg
|
2021-07-14 22:03:04 +00:00
|
|
|
|
, alsa-lib
|
2021-12-06 16:07:01 +00:00
|
|
|
|
, freetype
|
|
|
|
|
, libglvnd
|
2021-07-24 12:14:16 +00:00
|
|
|
|
, curl
|
2021-12-06 16:07:01 +00:00
|
|
|
|
, libXcursor
|
|
|
|
|
, libXinerama
|
|
|
|
|
, libXrandr
|
|
|
|
|
, libXrender
|
|
|
|
|
, libjack2
|
|
|
|
|
, webkitgtk
|
2021-07-14 22:03:04 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "tonelib-zoom";
|
|
|
|
|
version = "4.3.1";
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "https://www.tonelib.net/download/0129/ToneLib-Zoom-amd64.deb";
|
|
|
|
|
sha256 = "sha256-4q2vM0/q7o/FracnO2xxnr27opqfVQoN7fsqTD9Tr/c=";
|
|
|
|
|
};
|
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
autoPatchelfHook
|
2021-07-14 22:03:04 +00:00
|
|
|
|
dpkg
|
|
|
|
|
];
|
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
|
buildInputs = [
|
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
|
alsa-lib
|
|
|
|
|
freetype
|
|
|
|
|
libglvnd
|
|
|
|
|
webkitgtk
|
|
|
|
|
] ++ runtimeDependencies;
|
|
|
|
|
|
|
|
|
|
runtimeDependencies = map lib.getLib [
|
|
|
|
|
curl
|
|
|
|
|
libXcursor
|
|
|
|
|
libXinerama
|
|
|
|
|
libXrandr
|
|
|
|
|
libXrender
|
|
|
|
|
libjack2
|
2021-07-14 22:03:04 +00:00
|
|
|
|
];
|
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
|
unpackCmd = "dpkg -x $curSrc source";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-12-06 16:07:01 +00:00
|
|
|
|
mv usr $out
|
|
|
|
|
substituteInPlace $out/share/applications/ToneLib-Zoom.desktop --replace /usr/ $out/
|
2021-07-14 22:03:04 +00:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "ToneLib Zoom – change and save all the settings in your Zoom(r) guitar pedal";
|
|
|
|
|
homepage = "https://tonelib.net/";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
license = licenses.unfree;
|
|
|
|
|
maintainers = with maintainers; [ dan4ik605743 ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
};
|
|
|
|
|
}
|