git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #144774 from dan4ik605743/tonelib-meta
commit4042e36f2d3a21852d4cbfeca1cab8f7c5a1410e authorSandro <sandro.jaeckel@gmail.com> dateFri 5 Nov 2021, 21:03 (5 years ago) parent6f6f476a123ab3
2 files changed+34−24
pkgs/applications/audio/tonelib-jam/default.nix+1−1 pkgs/applications/audio/tonelib-zoom/default.nix+33−23
pkgs/applications/audio/tonelib-jam/default.nix+1−1
@@ -56,6 +56,6 @@ stdenv.mkDerivation rec {
5656 homepage = "https://tonelib.net/";
5757 license = licenses.unfree;
5858 maintainers = with maintainers; [ dan4ik605743 ];
59− platforms = platforms.linux;
59+ platforms = [ "x86_64-linux" ];
6060 };
6161}
pkgs/applications/audio/tonelib-zoom/default.nix+33−23
@@ -1,12 +1,18 @@
1−{ stdenv
2−, dpkg
3−, lib
4−, autoPatchelfHook
1+{ lib
2+, stdenv
53, fetchurl
6−, webkitgtk
7−, libjack2
4+, autoPatchelfHook
5+, dpkg
86, alsa-lib
7+, freetype
8+, libglvnd
99, curl
10+, libXcursor
11+, libXinerama
12+, libXrandr
13+, libXrender
14+, libjack2
15+, webkitgtk
1016}:
1117
1218stdenv.mkDerivation rec {
@@ -18,36 +24,40 @@ stdenv.mkDerivation rec {
1824 sha256 = "sha256-4q2vM0/q7o/FracnO2xxnr27opqfVQoN7fsqTD9Tr/c=";
1925 };
2026
21− buildInputs = [
27+ nativeBuildInputs = [
28+ autoPatchelfHook
2229 dpkg
23− webkitgtk
24− libjack2
25− alsa-lib
2630 ];
2731
28− nativeBuildInputs = [
29− autoPatchelfHook
32+ buildInputs = [
33+ stdenv.cc.cc.lib
34+ alsa-lib
35+ freetype
36+ libglvnd
37+ webkitgtk
38+ ] ++ runtimeDependencies;
39+
40+ runtimeDependencies = map lib.getLib [
41+ curl
42+ libXcursor
43+ libXinerama
44+ libXrandr
45+ libXrender
46+ libjack2
3047 ];
3148
32− unpackPhase = ''
33− mkdir -p $TMP/ $out/
34− dpkg -x $src $TMP
35− '';
49+ unpackCmd = "dpkg -x $curSrc source";
3650
3751 installPhase = ''
38− cp -R $TMP/usr/* $out/
39− mv $out/bin/ToneLib-Zoom $out/bin/tonelib-zoom
52+ mv usr $out
53+ substituteInPlace $out/share/applications/ToneLib-Zoom.desktop --replace /usr/ $out/
4054 '';
4155
42− runtimeDependencies = [
43− (lib.getLib curl)
44− ];
45−
4656 meta = with lib; {
4757 description = "ToneLib Zoom – change and save all the settings in your Zoom(r) guitar pedal";
4858 homepage = "https://tonelib.net/";
4959 license = licenses.unfree;
5060 maintainers = with maintainers; [ dan4ik605743 ];
51− platforms = platforms.linux;
61+ platforms = [ "x86_64-linux" ];
5262 };
5363}