12 flutterPackages.stable.buildFlutterApplication rec {
13 pname = "intiface-central";
15 src = fetchFromGitHub {
17 repo = "intiface-central";
19 hash = "sha256-QBNEKhjBfKxArBykUq/fE4lftCYzGdAaWYD1F7rar5Y=";
25 pubspecLock = lib.importJSON ./pubspec.lock.json;
27 cargoDeps = rustPlatform.fetchCargoTarball {
28 name = "${pname}-${version}-cargo-deps";
30 sourceRoot = "${src.name}/intiface-engine-flutter-bridge";
31 hash = "sha256-S3Yy0IIMiRUUpFNlLvS1PGwpvxePMB1sO5M6mpm1OgY=";
33 cargoRoot = "intiface-engine-flutter-bridge";
36 export CMAKE_PREFIX_PATH="${corrosion}:$CMAKE_PREFIX_PATH"
41 rustPlatform.cargoSetupHook
51 # without this, only the splash screen will be shown and the logs will contain the
52 # line `Failed to load dynamic library 'lib/libintiface_engine_flutter_bridge.so'`
53 # Environmental variables don't quite eval outside of hooks so use pname and
55 extraWrapProgramArgs = "--chdir $out/app/${pname}";
58 mkdir -p $out/share/pixmaps
59 cp $out/app/$pname/data/flutter_assets/assets/icons/intiface_central_icon.png $out/share/pixmaps/intiface-central.png
64 name = "intiface-central";
65 exec = "intiface_central";
66 icon = "intiface-central";
67 comment = "Intiface Central (Buttplug Frontend) Application for Desktop";
68 desktopName = "Intiface Central";
73 mainProgram = "intiface_central";
74 description = "Intiface Central (Buttplug Frontend) Application for Desktop";
75 homepage = "https://intiface.com/";
76 license = licenses.gpl3Only;
77 maintainers = with maintainers; [ _999eagle ];
78 platforms = platforms.linux;