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

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

60 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2021-06-23 13:23:31 +00:00
, fetchurl
, autoPatchelfHook
, dpkg
2021-06-23 13:23:31 +00:00
, alsa-lib
, freetype
, libglvnd
2021-07-20 14:51:34 +00:00
, curl
, libXcursor
, libXinerama
, libXrandr
, libXrender
, libjack2
2021-06-23 13:23:31 +00:00
}:
stdenv.mkDerivation rec {
pname = "tonelib-gfx";
2022-03-22 03:35:42 +00:00
version = "4.7.5";
2021-06-23 13:23:31 +00:00
src = fetchurl {
2022-03-22 03:35:42 +00:00
url = "https://www.tonelib.net/download/220214/ToneLib-GFX-amd64.deb";
hash = "sha256-GUSyarqG1V5O6ayAedeGqmOA+UABQDpAZ+dsorh7das=";
2021-06-23 13:23:31 +00:00
};
nativeBuildInputs = [ autoPatchelfHook dpkg ];
2021-06-23 13:23:31 +00:00
buildInputs = [
stdenv.cc.cc.lib
2021-06-23 13:23:31 +00:00
alsa-lib
freetype
libglvnd
] ++ runtimeDependencies;
runtimeDependencies = map lib.getLib [
curl
libXcursor
libXinerama
libXrandr
libXrender
libjack2
2021-06-23 13:23:31 +00:00
];
unpackCmd = "dpkg -x $curSrc source";
2021-06-23 13:23:31 +00:00
installPhase = ''
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/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2021-06-23 13:23:31 +00:00
license = licenses.unfree;
maintainers = with maintainers; [ dan4ik605743 orivej ];
platforms = [ "x86_64-linux" ];
2021-06-23 13:23:31 +00:00
};
}