11 libayatana-appindicator,
20 linux = flutter324.buildFlutterApplication rec {
22 version = "1.15.4-unstable-2024-10-26";
24 src = fetchFromGitHub {
27 rev = "d0e864ddf6ebe1c55188b33f8fdccd534d203c75";
28 hash = "sha256-qaW9LoRQge4K/CAQwbjNxmlUkQmxvaZyBJdAjXbbTw4=";
31 sourceRoot = "${src.name}/app";
33 pubspecLock = lib.importJSON ./pubspec.lock.json;
36 permission_handler_windows = "sha256-+TP3neqlQRZnW6BxHaXr2EbmdITIx1Yo7AEn5iwAhwM=";
37 pasteboard = "sha256-lJA5OWoAHfxORqWMglKzhsL1IFr9YcdAQP/NVOLYB4o=";
45 buildInputs = [ libayatana-appindicator ];
48 for s in 32 128 256 512; do
49 d=$out/share/icons/hicolor/''${s}x''${s}/apps
51 cp ./assets/img/logo-''${s}.png $d/localsend.png
58 exec = "localsend_app";
60 desktopName = "LocalSend";
61 startupWMClass = "localsend_app";
62 genericName = "An open source cross-platform alternative to AirDrop";
63 categories = [ "Network" ];
68 updateScript = ./update.sh;
69 tests.localsend = nixosTests.localsend;
72 meta = metaCommon // {
73 mainProgram = "localsend_app";
77 darwin = stdenv.mkDerivation {
78 inherit pname version;
81 url = "https://github.com/localsend/localsend/releases/download/v${version}/LocalSend-${version}.dmg";
82 hash = "sha256-ZU2aXZNKo01TnXNH0e+r0l4J5HIILmGam3T4+6GaeA4=";
93 mkdir -p $out/Applications
94 cp -r *.app $out/Applications
95 makeBinaryWrapper $out/Applications/LocalSend.app/Contents/MacOS/LocalSend $out/bin/localsend
98 meta = metaCommon // {
99 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
108 description = "Open source cross-platform alternative to AirDrop";
109 homepage = "https://localsend.org/";
110 license = lib.licenses.mit;
111 mainProgram = "localsend";
112 maintainers = with lib.maintainers; [
119 if stdenv.hostPlatform.isDarwin then darwin else linux