571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
35 lines
910 B
Nix
35 lines
910 B
Nix
{ 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; [ orivej ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|