summary refs log tree commit diff
path: root/pkgs/applications/audio/tonelib-jam/default.nix
blob: c58023d6a4bdd89e9e27cdb0771b47e030eb4e4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{ stdenv
, dpkg
, lib
, autoPatchelfHook
, fetchurl
, gtk3
, glib
, desktop-file-utils
, alsa-lib
, libjack2
, harfbuzz
, fribidi
, pango
, freetype
}:

stdenv.mkDerivation rec {
  pname = "tonelib-jam";
  version = "4.6.6";

  src = fetchurl {
    url = "https://www.tonelib.net/download/0509/ToneLib-Jam-amd64.deb";
    sha256 = "sha256-cizIQgO35CQSLme/LKQqP+WzB/jCTk+fS5Z+EtF7wnQ=";
  };

  buildInputs = [
    dpkg
    gtk3
    glib
    desktop-file-utils
    alsa-lib
    libjack2
    harfbuzz
    fribidi
    pango
    freetype
  ];

  nativeBuildInputs = [
    autoPatchelfHook
  ];

  unpackPhase = ''
    mkdir -p $TMP/ $out/
    dpkg -x $src $TMP
  '';

  installPhase = ''
    cp -R $TMP/usr/* $out/
    mv $out/bin/ToneLib-Jam $out/bin/tonelib-jam
  '';

  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 ];
    platforms = platforms.linux;
  };
}