2021-11-05 18:14:47 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
2021-07-01 09:41:28 +01:00
|
|
|
|
, fetchurl
|
2021-11-05 18:14:47 +00:00
|
|
|
|
, autoPatchelfHook
|
|
|
|
|
, dpkg
|
2021-07-01 09:41:28 +01:00
|
|
|
|
, alsa-lib
|
2021-11-05 18:14:47 +00:00
|
|
|
|
, freetype
|
|
|
|
|
, libglvnd
|
2021-07-20 15:53:53 +01:00
|
|
|
|
, curl
|
2021-11-05 18:14:47 +00:00
|
|
|
|
, libXcursor
|
|
|
|
|
, libXinerama
|
|
|
|
|
, libXrandr
|
|
|
|
|
, libXrender
|
|
|
|
|
, libjack2
|
|
|
|
|
, webkitgtk
|
2021-07-01 09:41:28 +01: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-11-05 18:14:47 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
autoPatchelfHook
|
2021-07-01 09:41:28 +01:00
|
|
|
|
dpkg
|
|
|
|
|
];
|
|
|
|
|
|
2021-11-05 18:14:47 +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-01 09:41:28 +01:00
|
|
|
|
];
|
|
|
|
|
|
2021-11-05 18:14:47 +00:00
|
|
|
|
unpackCmd = "dpkg -x $curSrc source";
|
2021-07-01 09:41:28 +01:00
|
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-11-05 18:14:47 +00:00
|
|
|
|
mv usr $out
|
|
|
|
|
substituteInPlace $out/share/applications/ToneLib-Zoom.desktop --replace /usr/ $out/
|
2021-07-01 09:41:28 +01:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "ToneLib Zoom – change and save all the settings in your Zoom(r) guitar pedal";
|
|
|
|
|
homepage = "https://tonelib.net/";
|
|
|
|
|
license = licenses.unfree;
|
|
|
|
|
maintainers = with maintainers; [ dan4ik605743 ];
|
2021-11-05 18:14:47 +00:00
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2021-07-01 09:41:28 +01:00
|
|
|
|
};
|
|
|
|
|
}
|