about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/audio/jack-capture/default.nix
blob: c62ccc4fc8831a757bc5f795fb6923d20c76823e (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
{ stdenv, fetchurl, libjack2, libsndfile, pkgconfig }:

stdenv.mkDerivation rec {
  pname = "jack_capture";
  version = "0.9.73";

  src = fetchurl {
    url = "https://archive.notam02.no/arkiv/src/${pname}-${version}.tar.gz";
    sha256 = "1pji0zdwm3kxjrkbzj7fnxhr8ncrc8pyqnwyrh47fhypgqjv1br1";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libjack2 libsndfile ];

  buildPhase = "PREFIX=$out make jack_capture";

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

  hardeningDisable = [ "format" ];

  meta = with stdenv.lib; {
    description = "A program for recording soundfiles with jack";
    homepage = http://archive.notam02.no/arkiv/src;
    license = licenses.gpl2;
    maintainers = [ maintainers.goibhniu ];
    platforms = stdenv.lib.platforms.linux;
  };
}