lol
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 libjack2,
6 libsndfile,
7 pkg-config,
8}:
9
10stdenv.mkDerivation {
11 pname = "jack_capture";
12 version = "0.9.73.2023-01-04";
13
14 src = fetchFromGitHub {
15 owner = "kmatheussen";
16 repo = "jack_capture";
17 rev = "a539d444d388c4cfed7279e385830e7767d59c41";
18 sha256 = "sha256-2DavZS4esV17a3vkiPvfCfp0QF94ZcXqdIw84h9HDjA=";
19 };
20
21 nativeBuildInputs = [ pkg-config ];
22 buildInputs = [
23 libjack2
24 libsndfile
25 ];
26
27 buildPhase = "PREFIX=$out make jack_capture";
28
29 installPhase = ''
30 mkdir -p $out/bin
31 cp jack_capture $out/bin/
32 '';
33
34 hardeningDisable = [ "format" ];
35
36 meta = with lib; {
37 description = "Program for recording soundfiles with jack";
38 mainProgram = "jack_capture";
39 homepage = "https://github.com/kmatheussen/jack_capture/";
40 license = licenses.gpl2;
41 maintainers = with maintainers; [ orivej ];
42 platforms = lib.platforms.linux;
43 };
44}