camilladsp: init at 3.0.1

This commit is contained in:
PAEPCKE, Michael 2025-05-07 06:01:31 +00:00
parent cfbc694c82
commit 222b02efef
No known key found for this signature in database
2 changed files with 3540 additions and 0 deletions

3483
pkgs/by-name/ca/camilladsp/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,57 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
libpulseaudio,
openssl,
stdenv,
alsa-lib,
nix-update-script,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "camilladsp";
version = "3.0.1";
src = fetchFromGitHub {
owner = "HEnquist";
repo = "camilladsp";
tag = "v${finalAttrs.version}";
hash = "sha256-IJ1sYprBh8ys1Og3T3newIDlBlR0PoQiblbJmzLbsfs=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
libpulseaudio
openssl
] ++ lib.optionals stdenv.isLinux [ alsa-lib ];
passthru.updateScript = nix-update-script { extraArgs = [ "--generate-lockfile" ]; };
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
meta = {
description = "Flexible cross-platform IIR and FIR engine for crossovers, room correction etc";
homepage = "https://github.com/HEnquist/camilladsp";
changelog = "https://github.com/HEnquist/camilladsp/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ paepcke ];
mainProgram = "camilladsp";
};
})