1{
2 stdenv,
3}:
4
5{ version, src, ... }:
6
7stdenv.mkDerivation {
8 pname = "flutter_volume_controller";
9 inherit version src;
10 inherit (src) passthru;
11
12 postPatch = ''
13 substituteInPlace linux/CMakeLists.txt \
14 --replace-fail '# Include ALSA' 'find_package(PkgConfig REQUIRED)' \
15 --replace-fail 'find_package(ALSA REQUIRED)' 'pkg_check_modules(ALSA REQUIRED alsa)'
16 '';
17
18 installPhase = ''
19 runHook preInstall
20
21 mkdir $out
22 cp -r ./* $out/
23
24 runHook postInstall
25 '';
26}