2021-10-27 12:06:18 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
2021-07-01 08:39:45 +00:00
|
|
|
|
, fetchurl
|
2021-10-27 12:06:18 +00:00
|
|
|
|
, autoPatchelfHook
|
|
|
|
|
, dpkg
|
2021-07-01 08:39:45 +00:00
|
|
|
|
, alsa-lib
|
|
|
|
|
, freetype
|
2021-10-27 12:06:18 +00:00
|
|
|
|
, libglvnd
|
2021-07-20 14:52:24 +00:00
|
|
|
|
, curl
|
2021-10-27 12:06:18 +00:00
|
|
|
|
, libXcursor
|
|
|
|
|
, libXinerama
|
|
|
|
|
, libXrandr
|
|
|
|
|
, libXrender
|
|
|
|
|
, libjack2
|
2021-07-01 08:39:45 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "tonelib-jam";
|
2021-10-27 12:06:18 +00:00
|
|
|
|
version = "4.7.0";
|
2021-07-01 08:39:45 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-10-27 12:06:18 +00:00
|
|
|
|
url = "https://www.tonelib.net/download/0930/ToneLib-Jam-amd64.deb";
|
|
|
|
|
sha256 = "sha256-xyBDp3DQVC+nK2WGnvrfUfD+9GvwtbldXgExTMmCGw0=";
|
2021-07-01 08:39:45 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-10-27 12:06:18 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
autoPatchelfHook
|
2021-07-01 08:39:45 +00:00
|
|
|
|
dpkg
|
|
|
|
|
];
|
|
|
|
|
|
2021-10-27 12:06:18 +00:00
|
|
|
|
buildInputs = [
|
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
|
alsa-lib
|
|
|
|
|
freetype
|
|
|
|
|
libglvnd
|
|
|
|
|
] ++ runtimeDependencies;
|
|
|
|
|
|
|
|
|
|
runtimeDependencies = map lib.getLib [
|
|
|
|
|
curl
|
|
|
|
|
libXcursor
|
|
|
|
|
libXinerama
|
|
|
|
|
libXrandr
|
|
|
|
|
libXrender
|
|
|
|
|
libjack2
|
2021-07-01 08:39:45 +00:00
|
|
|
|
];
|
|
|
|
|
|
2021-10-27 12:06:18 +00:00
|
|
|
|
unpackCmd = "dpkg -x $curSrc source";
|
2021-07-01 08:39:45 +00:00
|
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-10-27 12:06:18 +00:00
|
|
|
|
mv usr $out
|
|
|
|
|
substituteInPlace $out/share/applications/ToneLib-Jam.desktop --replace /usr/ $out/
|
2021-07-01 08:39:45 +00:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "ToneLib Jam – the learning and practice software for guitar players";
|
|
|
|
|
homepage = "https://tonelib.net/";
|
|
|
|
|
license = licenses.unfree;
|
|
|
|
|
maintainers = with maintainers; [ dan4ik605743 ];
|
2021-11-05 18:09:46 +00:00
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2021-07-01 08:39:45 +00:00
|
|
|
|
};
|
|
|
|
|
}
|