2021-10-27 13:06:18 +01:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
2021-07-01 09:39:45 +01:00
|
|
|
|
, fetchurl
|
2021-10-27 13:06:18 +01:00
|
|
|
|
, autoPatchelfHook
|
|
|
|
|
, dpkg
|
2021-07-01 09:39:45 +01:00
|
|
|
|
, alsa-lib
|
|
|
|
|
, freetype
|
2021-10-27 13:06:18 +01:00
|
|
|
|
, libglvnd
|
2021-07-20 15:52:24 +01:00
|
|
|
|
, curl
|
2021-10-27 13:06:18 +01:00
|
|
|
|
, libXcursor
|
|
|
|
|
, libXinerama
|
|
|
|
|
, libXrandr
|
|
|
|
|
, libXrender
|
|
|
|
|
, libjack2
|
2021-07-01 09:39:45 +01:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "tonelib-jam";
|
2022-03-22 03:41:09 +00:00
|
|
|
|
version = "4.7.5";
|
2021-07-01 09:39:45 +01:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-22 03:41:09 +00:00
|
|
|
|
url = "https://www.tonelib.net/download/220214/ToneLib-Jam-amd64.deb";
|
|
|
|
|
sha256 = "sha256-alkdoEhN58o9IGZ8sB39ctTpouMSmvgn6tbrKFneKPI=";
|
2021-07-01 09:39:45 +01:00
|
|
|
|
};
|
|
|
|
|
|
2021-10-27 13:06:18 +01:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
autoPatchelfHook
|
2021-07-01 09:39:45 +01:00
|
|
|
|
dpkg
|
|
|
|
|
];
|
|
|
|
|
|
2021-10-27 13:06:18 +01:00
|
|
|
|
buildInputs = [
|
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
|
alsa-lib
|
|
|
|
|
freetype
|
|
|
|
|
libglvnd
|
|
|
|
|
] ++ runtimeDependencies;
|
|
|
|
|
|
|
|
|
|
runtimeDependencies = map lib.getLib [
|
|
|
|
|
curl
|
|
|
|
|
libXcursor
|
|
|
|
|
libXinerama
|
|
|
|
|
libXrandr
|
|
|
|
|
libXrender
|
|
|
|
|
libjack2
|
2021-07-01 09:39:45 +01:00
|
|
|
|
];
|
|
|
|
|
|
2021-10-27 13:06:18 +01:00
|
|
|
|
unpackCmd = "dpkg -x $curSrc source";
|
2021-07-01 09:39:45 +01:00
|
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-10-27 13:06:18 +01:00
|
|
|
|
mv usr $out
|
|
|
|
|
substituteInPlace $out/share/applications/ToneLib-Jam.desktop --replace /usr/ $out/
|
2021-07-01 09:39:45 +01: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 09:39:45 +01:00
|
|
|
|
};
|
|
|
|
|
}
|