Merge pull request #144774 from dan4ik605743/tonelib-meta

This commit is contained in:
Sandro 2021-11-05 21:03:40 +01:00 committed by GitHub
commit 4042e36f2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 25 deletions

View File

@ -56,6 +56,6 @@ stdenv.mkDerivation rec {
homepage = "https://tonelib.net/"; homepage = "https://tonelib.net/";
license = licenses.unfree; license = licenses.unfree;
maintainers = with maintainers; [ dan4ik605743 ]; maintainers = with maintainers; [ dan4ik605743 ];
platforms = platforms.linux; platforms = [ "x86_64-linux" ];
}; };
} }

View File

@ -1,12 +1,18 @@
{ stdenv { lib
, dpkg , stdenv
, lib
, autoPatchelfHook
, fetchurl , fetchurl
, webkitgtk , autoPatchelfHook
, libjack2 , dpkg
, alsa-lib , alsa-lib
, freetype
, libglvnd
, curl , curl
, libXcursor
, libXinerama
, libXrandr
, libXrender
, libjack2
, webkitgtk
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -18,36 +24,40 @@ stdenv.mkDerivation rec {
sha256 = "sha256-4q2vM0/q7o/FracnO2xxnr27opqfVQoN7fsqTD9Tr/c="; sha256 = "sha256-4q2vM0/q7o/FracnO2xxnr27opqfVQoN7fsqTD9Tr/c=";
}; };
buildInputs = [
dpkg
webkitgtk
libjack2
alsa-lib
];
nativeBuildInputs = [ nativeBuildInputs = [
autoPatchelfHook autoPatchelfHook
dpkg
]; ];
unpackPhase = '' buildInputs = [
mkdir -p $TMP/ $out/ stdenv.cc.cc.lib
dpkg -x $src $TMP alsa-lib
''; freetype
libglvnd
webkitgtk
] ++ 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-Zoom $out/bin/tonelib-zoom substituteInPlace $out/share/applications/ToneLib-Zoom.desktop --replace /usr/ $out/
''; '';
runtimeDependencies = [
(lib.getLib curl)
];
meta = with lib; { meta = with lib; {
description = "ToneLib Zoom change and save all the settings in your Zoom(r) guitar pedal"; description = "ToneLib Zoom change and save all the settings in your Zoom(r) guitar pedal";
homepage = "https://tonelib.net/"; homepage = "https://tonelib.net/";
license = licenses.unfree; license = licenses.unfree;
maintainers = with maintainers; [ dan4ik605743 ]; maintainers = with maintainers; [ dan4ik605743 ];
platforms = platforms.linux; platforms = [ "x86_64-linux" ];
}; };
} }