2021-10-28 06:52:43 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
2021-07-14 22:03:04 +00:00
|
|
|
|
, fetchurl
|
2021-10-28 06:52:43 +00:00
|
|
|
|
, autoPatchelfHook
|
|
|
|
|
, dpkg
|
2021-07-14 22:03:04 +00:00
|
|
|
|
, alsa-lib
|
|
|
|
|
, freetype
|
2021-10-28 06:52:43 +00:00
|
|
|
|
, libglvnd
|
2021-07-24 12:14:16 +00:00
|
|
|
|
, curl
|
2021-10-28 06:52:43 +00:00
|
|
|
|
, libXcursor
|
|
|
|
|
, libXinerama
|
|
|
|
|
, libXrandr
|
|
|
|
|
, libXrender
|
|
|
|
|
, libjack2
|
2021-07-14 22:03:04 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "tonelib-jam";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
version = "4.7.5";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-30 09:31:56 +00:00
|
|
|
|
url = "https://www.tonelib.net/download/220214/ToneLib-Jam-amd64.deb";
|
|
|
|
|
sha256 = "sha256-alkdoEhN58o9IGZ8sB39ctTpouMSmvgn6tbrKFneKPI=";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
autoPatchelfHook
|
2021-07-14 22:03:04 +00:00
|
|
|
|
dpkg
|
|
|
|
|
];
|
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
|
buildInputs = [
|
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
|
alsa-lib
|
|
|
|
|
freetype
|
|
|
|
|
libglvnd
|
|
|
|
|
] ++ runtimeDependencies;
|
|
|
|
|
|
|
|
|
|
runtimeDependencies = map lib.getLib [
|
|
|
|
|
curl
|
|
|
|
|
libXcursor
|
|
|
|
|
libXinerama
|
|
|
|
|
libXrandr
|
|
|
|
|
libXrender
|
|
|
|
|
libjack2
|
2021-07-14 22:03:04 +00:00
|
|
|
|
];
|
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
|
unpackCmd = "dpkg -x $curSrc source";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-10-28 06:52:43 +00:00
|
|
|
|
mv usr $out
|
|
|
|
|
substituteInPlace $out/share/applications/ToneLib-Jam.desktop --replace /usr/ $out/
|
2021-07-14 22:03:04 +00:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "ToneLib Jam – the learning and practice software for guitar players";
|
|
|
|
|
homepage = "https://tonelib.net/";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
license = licenses.unfree;
|
|
|
|
|
maintainers = with maintainers; [ dan4ik605743 ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
};
|
|
|
|
|
}
|