Merge pull request #143142 from dan4ik605743/tonelib-up

This commit is contained in:
Sandro 2021-10-27 22:39:47 +02:00 committed by GitHub
commit a3cf666fdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,60 +1,56 @@
{ stdenv { lib
, dpkg , stdenv
, lib
, autoPatchelfHook
, fetchurl , fetchurl
, gtk3 , autoPatchelfHook
, glib , dpkg
, desktop-file-utils
, alsa-lib , alsa-lib
, libjack2
, harfbuzz
, fribidi
, pango
, freetype , freetype
, libglvnd
, curl , curl
, libXcursor
, libXinerama
, libXrandr
, libXrender
, libjack2
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "tonelib-jam"; pname = "tonelib-jam";
version = "4.6.6"; version = "4.7.0";
src = fetchurl { src = fetchurl {
url = "https://www.tonelib.net/download/0509/ToneLib-Jam-amd64.deb"; url = "https://www.tonelib.net/download/0930/ToneLib-Jam-amd64.deb";
sha256 = "sha256-cizIQgO35CQSLme/LKQqP+WzB/jCTk+fS5Z+EtF7wnQ="; sha256 = "sha256-xyBDp3DQVC+nK2WGnvrfUfD+9GvwtbldXgExTMmCGw0=";
}; };
buildInputs = [
dpkg
gtk3
glib
desktop-file-utils
alsa-lib
libjack2
harfbuzz
fribidi
pango
freetype
];
nativeBuildInputs = [ nativeBuildInputs = [
autoPatchelfHook autoPatchelfHook
dpkg
]; ];
unpackPhase = '' buildInputs = [
mkdir -p $TMP/ $out/ stdenv.cc.cc.lib
dpkg -x $src $TMP alsa-lib
''; freetype
libglvnd
] ++ runtimeDependencies;
runtimeDependencies = map lib.getLib [
curl
libXcursor
libXinerama
libXrandr
libXrender
libjack2
];
unpackCmd = "dpkg -x $curSrc source";
installPhase = '' installPhase = ''
cp -R $TMP/usr/* $out/ mv usr $out
mv $out/bin/ToneLib-Jam $out/bin/tonelib-jam substituteInPlace $out/share/applications/ToneLib-Jam.desktop --replace /usr/ $out/
''; '';
runtimeDependencies = [
(lib.getLib curl)
];
meta = with lib; { meta = with lib; {
description = "ToneLib Jam the learning and practice software for guitar players"; description = "ToneLib Jam the learning and practice software for guitar players";
homepage = "https://tonelib.net/"; homepage = "https://tonelib.net/";