11 libayatana-appindicator,
20 linux = flutter324.buildFlutterApplication rec {
21 inherit pname version;
23 src = fetchFromGitHub {
27 hash = "sha256-9nW1cynvRgX565ZupR+ogfDH9Qem+LQH4XZupVsrEWo=";
30 sourceRoot = "${src.name}/app";
32 pubspecLock = lib.importJSON ./pubspec.lock.json;
35 permission_handler_windows = "sha256-+TP3neqlQRZnW6BxHaXr2EbmdITIx1Yo7AEn5iwAhwM=";
36 pasteboard = "sha256-lJA5OWoAHfxORqWMglKzhsL1IFr9YcdAQP/NVOLYB4o=";
44 buildInputs = [ libayatana-appindicator ];
47 for s in 32 128 256 512; do
48 d=$out/share/icons/hicolor/''${s}x''${s}/apps
50 cp ./assets/img/logo-''${s}.png $d/localsend.png
54 extraWrapProgramArgs = ''
55 --prefix LD_LIBRARY_PATH : "$out/app/${pname}/lib"
61 exec = "localsend_app";
63 desktopName = "LocalSend";
64 startupWMClass = "localsend_app";
65 genericName = "An open source cross-platform alternative to AirDrop";
66 categories = [ "Network" ];
71 updateScript = ./update.sh;
72 tests.localsend = nixosTests.localsend;
75 meta = metaCommon // {
76 mainProgram = "localsend_app";
80 darwin = stdenv.mkDerivation {
81 inherit pname version;
84 url = "https://github.com/localsend/localsend/releases/download/v${version}/LocalSend-${version}.dmg";
85 hash = "sha256-kgq3AoypDdRwk9bKa1zjUJo4tHHUbDZIg0G0Rk9S3n4=";
96 mkdir -p $out/Applications
97 cp -r *.app $out/Applications
98 makeBinaryWrapper $out/Applications/LocalSend.app/Contents/MacOS/LocalSend $out/bin/localsend
101 meta = metaCommon // {
102 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
111 description = "Open source cross-platform alternative to AirDrop";
112 homepage = "https://localsend.org/";
113 license = lib.licenses.mit;
114 mainProgram = "localsend";
115 maintainers = with lib.maintainers; [
122 if stdenv.hostPlatform.isDarwin then darwin else linux