3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/tonelib-gfx/default.nix

59 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2021-06-23 14:23:31 +01:00
, fetchurl
, autoPatchelfHook
, dpkg
2021-06-23 14:23:31 +01:00
, alsa-lib
, freetype
, libglvnd
2021-07-20 15:51:34 +01:00
, curl
, libXcursor
, libXinerama
, libXrandr
, libXrender
, libjack2
2021-06-23 14:23:31 +01:00
}:
stdenv.mkDerivation rec {
pname = "tonelib-gfx";
version = "4.7.0";
2021-06-23 14:23:31 +01:00
src = fetchurl {
url = "https://www.tonelib.net/download/0930/ToneLib-GFX-amd64.deb";
hash = "sha256-BcbX0dz94B4mj6QeQsnuZmwXAaXH+yJjnrUPgEYVqkU=";
2021-06-23 14:23:31 +01:00
};
nativeBuildInputs = [ autoPatchelfHook dpkg ];
2021-06-23 14:23:31 +01:00
buildInputs = [
stdenv.cc.cc.lib
2021-06-23 14:23:31 +01:00
alsa-lib
freetype
libglvnd
] ++ runtimeDependencies;
runtimeDependencies = map lib.getLib [
curl
libXcursor
libXinerama
libXrandr
libXrender
libjack2
2021-06-23 14:23:31 +01:00
];
unpackCmd = "dpkg -x $curSrc source";
2021-06-23 14:23:31 +01:00
installPhase = ''
mv usr $out
substituteInPlace $out/share/applications/ToneLib-GFX.desktop --replace /usr/ $out/
'';
2021-07-20 15:51:34 +01:00
2021-06-23 14:23:31 +01:00
meta = with lib; {
description = "Tonelib GFX is an amp and effects modeling software for electric guitar and bass.";
homepage = "https://tonelib.net/";
license = licenses.unfree;
maintainers = with maintainers; [ dan4ik605743 orivej ];
platforms = [ "x86_64-linux" ];
2021-06-23 14:23:31 +01:00
};
}