nixpkgs/pkgs/applications/audio/tonelib-zoom/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.2 KiB
Nix
Raw Normal View History

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