36 hover = buildGoModule rec {
37 inherit pname version;
40 description = "A build tool to run Flutter applications on desktop";
41 homepage = "https://github.com/go-flutter-desktop/hover";
42 license = licenses.bsd3;
43 platforms = platforms.linux;
44 maintainers = with maintainers; [ ericdallo ];
47 subPackages = [ "." ];
49 vendorHash = "sha256-GDoX5d2aDfaAx9JsKuS4r8137t3swT6rgcCghmaThSM=";
51 src = fetchFromGitHub {
53 owner = "go-flutter-desktop";
55 sha256 = "sha256-ch59Wx4g72u7x99807ppURI4I+5aJ/W8Zr35q8X68v4=";
58 nativeBuildInputs = [ addOpenGLRunpath makeWrapper ];
65 ./fix-assets-path.patch
69 sed -i 's|@assetsFolder@|'"''${out}/share/assets"'|g' internal/fileutils/assets.go
74 cp -r assets $out/share/assets
75 chmod -R a+rx $out/share/assets
77 wrapProgram "$out/bin/hover" \
78 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath libs}
82 addOpenGLRunpath $out/bin/hover