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.

61 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";
2023-03-20 01:49:57 +00:00
version = "4.7.8";
2021-06-23 13:23:31 +00:00
src = fetchurl {
2023-03-20 01:49:57 +00:00
url = "https://tonelib.net/download/221222/ToneLib-GFX-amd64.deb";
hash = "sha256-1sTwHqQYqNloZ3XSwhryqlW7b1FHh4ymtj3rKUcVZIo=";
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" ];
2024-02-11 02:19:15 +00:00
mainProgram = "ToneLib-GFX";
2021-06-23 13:23:31 +00:00
};
}