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

62 lines
1.1 KiB
Nix
Raw Normal View History

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";
2021-10-27 13:06:18 +01:00
version = "4.7.0";
2021-07-01 09:39:45 +01:00
src = fetchurl {
2021-10-27 13:06:18 +01:00
url = "https://www.tonelib.net/download/0930/ToneLib-Jam-amd64.deb";
sha256 = "sha256-xyBDp3DQVC+nK2WGnvrfUfD+9GvwtbldXgExTMmCGw0=";
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
};
}