Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
557 B · 26 lines
Nix
123456789101112131415161718192021222324252627{ 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 '';}