about summary refs log tree commit diff
path: root/pkgs/applications/audio/jack-capture/default.nix
blob: c3fc09cb088f9b5d5b400f70377ad86246cf646d (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
{ lib, stdenv, fetchFromGitHub, libjack2, libsndfile, pkg-config }:

stdenv.mkDerivation rec {
  pname = "jack_capture";
  version = "0.9.73.2023-01-04";

  src = fetchFromGitHub {
    owner = "kmatheussen";
    repo = "jack_capture";
    rev = "a539d444d388c4cfed7279e385830e7767d59c41";
    sha256 = "sha256-2DavZS4esV17a3vkiPvfCfp0QF94ZcXqdIw84h9HDjA=";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ libjack2 libsndfile ];

  buildPhase = "PREFIX=$out make jack_capture";

  installPhase = ''
    mkdir -p $out/bin
    cp jack_capture $out/bin/
  '';

  hardeningDisable = [ "format" ];

  meta = with lib; {
    description = "Program for recording soundfiles with jack";
    mainProgram = "jack_capture";
    homepage = "https://github.com/kmatheussen/jack_capture/";
    license = licenses.gpl2;
    maintainers = with maintainers; [ goibhniu orivej ];
    platforms = lib.platforms.linux;
  };
}