27 lines
498 B
Nix
27 lines
498 B
Nix
|
|
{
|
||
|
|
stdenv,
|
||
|
|
}:
|
||
|
|
|
||
|
|
{ version, src, ... }:
|
||
|
|
|
||
|
|
stdenv.mkDerivation {
|
||
|
|
pname = "flutter_volume_controller";
|
||
|
|
inherit version src;
|
||
|
|
inherit (src) passthru;
|
||
|
|
|
||
|
|
postPatch = ''
|
||
|
|
substituteInPlace linux/CMakeLists.txt \
|
||
|
|
--replace-fail '# Include ALSA' 'find_package(PkgConfig REQUIRED)' \
|
||
|
|
--replace-fail 'find_package(ALSA REQUIRED)' 'pkg_check_modules(ALSA REQUIRED alsa)'
|
||
|
|
'';
|
||
|
|
|
||
|
|
installPhase = ''
|
||
|
|
runHook preInstall
|
||
|
|
|
||
|
|
mkdir $out
|
||
|
|
cp -r ./* $out/
|
||
|
|
|
||
|
|
runHook postInstall
|
||
|
|
'';
|
||
|
|
}
|