dart.flutter_volume_controller: init

This commit is contained in:
aucub 2024-11-10 05:40:39 +08:00
parent da4bf61402
commit a2143e6870
2 changed files with 26 additions and 0 deletions

View File

@ -2,6 +2,7 @@
{
flutter_secure_storage_linux = callPackage ./flutter-secure-storage-linux { };
flutter_volume_controller = callPackage ./flutter_volume_controller { };
fvp = callPackage ./fvp { };
handy_window = callPackage ./handy-window { };
matrix = callPackage ./matrix { };

View File

@ -0,0 +1,25 @@
{
stdenv,
mdk-sdk,
}:
{ version, src, ... }:
stdenv.mkDerivation rec {
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
'';
}