Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
557 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
}:
{ version, src, ... }:
stdenv.mkDerivation {
pname = "volume_controller";
inherit version src;
inherit (src) passthru;
postPatch = lib.optionalString (lib.versionAtLeast version "3.4.0") ''
substituteInPlace linux/CMakeLists.txt \
--replace-fail "# ALSA dependency for volume control" "find_package(PkgConfig REQUIRED)" \
--replace-fail "find_package(ALSA REQUIRED)" "pkg_check_modules(ALSA REQUIRED alsa)"
'';
installPhase = ''
runHook preInstall
cp -r . $out
runHook postInstall
'';
}