dart.file_picker: init (#363407)

This commit is contained in:
Aleksana
2024-12-11 22:19:16 +08:00
committed by GitHub
7 changed files with 27 additions and 19 deletions
-2
View File
@@ -4,12 +4,10 @@
flutter,
lib,
tor,
zenity,
}:
let
runtimeBinDependencies = [
tor
zenity
];
in
flutter.buildFlutterApplication rec {
-5
View File
@@ -7,7 +7,6 @@
buildGoModule,
makeDesktopItem,
copyDesktopItems,
zenity,
wrapGAppsHook3,
autoPatchelfHook,
}:
@@ -97,10 +96,6 @@ flutter324.buildFlutterApplication {
install -Dm644 ./assets/images/icon.png $out/share/pixmaps/flclash.png
'';
extraWrapProgramArgs = ''
--prefix PATH : ${lib.makeBinPath [ zenity ]}
'';
meta = {
description = "Multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free";
homepage = "https://github.com/chen08209/FlClash";
-3
View File
@@ -8,7 +8,6 @@
flutter324,
pulseaudio,
makeDesktopItem,
zenity,
olm,
targetFlutterPlatform ? "linux",
@@ -64,8 +63,6 @@ flutter324.buildFlutterApplication (
runtimeDependencies = [ pulseaudio ];
extraWrapProgramArgs = "--prefix PATH : ${zenity}/bin";
env.NIX_LDFLAGS = "-rpath-link ${libwebrtcRpath}";
desktopItem = makeDesktopItem {
+1 -7
View File
@@ -35,7 +35,6 @@
libvdpau,
rustPlatform,
stdenv,
zenity,
copyDesktopItems,
makeDesktopItem,
replaceVars,
@@ -157,12 +156,7 @@ flutter324.buildFlutterApplication {
'';
extraWrapProgramArgs = ''
--prefix LD_LIBRARY_PATH : "$out/app/${pname}/lib" \
--prefix PATH : "${
lib.makeBinPath [
zenity
]
}"
--prefix LD_LIBRARY_PATH : "$out/app/${pname}/lib"
'';
meta = {
-2
View File
@@ -5,7 +5,6 @@
lib,
flutter,
quickemu,
zenity,
}:
flutter.buildFlutterApplication rec {
pname = "quickgui";
@@ -26,7 +25,6 @@ flutter.buildFlutterApplication rec {
extraWrapProgramArgs = "--prefix PATH : ${
lib.makeBinPath [
quickemu
zenity
]
}";
@@ -1,6 +1,7 @@
{ callPackage }:
{
file_picker = callPackage ./file_picker { };
flutter_secure_storage_linux = callPackage ./flutter-secure-storage-linux { };
flutter_volume_controller = callPackage ./flutter_volume_controller { };
fvp = callPackage ./fvp { };
@@ -0,0 +1,25 @@
{
stdenv,
zenity,
}:
{ version, src, ... }:
stdenv.mkDerivation rec {
pname = "file_picker";
inherit version src;
inherit (src) passthru;
postPatch = ''
substituteInPlace lib/src/linux/file_picker_linux.dart \
--replace-fail "isExecutableOnPath('zenity')" "'${zenity}/bin/zenity'"
'';
installPhase = ''
runHook preInstall
cp -r . $out
runHook postInstall
'';
}