New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hover: init at 0.43.0 #80075
hover: init at 0.43.0 #80075
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/116 |
I don't know much about flutter or hover, but gave it a build and noticed that |
the deps.nix is no longer necessary. and please squash commits |
f8b54b2
to
2304dc4
Compare
Thanks @jonringer! |
@GrahamcOfBorg build hover |
5f8bd02
to
93a5078
Compare
93a5078
to
0d81d20
Compare
@GrahamcOfBorg build hover |
@GrahamcOfBorg build hover |
0d81d20
to
6ee20c5
Compare
is this ready to be reviewed? looks close |
@jonringer Unfortunately I was not able to get it working without using the hover docker param, this is where I stuck. But I'm using the docker version (this PR changed files) on my work for months and it's working ok. |
If it works well, then I think it's able to be merged. Smaller closures are a good goal, but it seems like you did a solid attempt to try and reduce it. Going to let some time for people to comment if they have any strong objections, then I'll come back around and do a review + merge. |
Thank you @jonringer! |
Based on this PR: NixOS/nixpkgs#80075 I exported the `go` and `gcc` packages so it was available inside the FHS env and also fixed the X11 libraries, and this seems to do the trick. There is no more reason to wrapper with CPATH, and the only reason we keep LD_LIBRARY_PATH is because hover is built outside the buildFHSUserEnv so it wouldn't found the libraries otherwise.
Just to help having this merge, we finally got a way to make { lib
, buildGoModule
, buildFHSUserEnv
, dejavu_fonts
, pkgconfig
, fetchFromGitHub
, stdenv
, roboto
, writeScript
, xorg
, libglvnd
, addOpenGLRunpath
, makeWrapper
, gcc
, go
, flutter
}:
let
pname = "hover";
version = "0.43.0";
libs = with xorg; [
libX11.dev
libXcursor.dev
libXext.dev
libXi.dev
libXinerama.dev
libXrandr.dev
libXrender.dev
libXfixes.dev
libXxf86vm
libglvnd.dev
xorgproto
];
hover = buildGoModule rec {
inherit pname version;
meta = with stdenv.lib; {
description = "A build tool to run Flutter applications on desktop";
homepage = "https://github.com/go-flutter-desktop/hover";
license = licenses.bsd3;
platforms = platforms.linux ++ platforms.darwin;
};
subPackages = [ "." ];
vendorSha256 = "1wr08phjm87dxim47i8449rmq5wfscvjyz65g3lxmv468x209pam";
src = fetchFromGitHub {
rev = "v${version}";
owner = "go-flutter-desktop";
repo = pname;
sha256 = "0iw6sxg86wfdbihl2hxzn43ppdzl1p7g5b9wl8ac3xa9ix8759ax";
};
nativeBuildInputs = [ addOpenGLRunpath makeWrapper ];
buildInputs = libs;
checkRun = false;
patches = [
./fix-assets-path.patch
];
postPatch = ''
sed -i 's|@assetsFolder@|'"''${out}/share/assets"'|g' internal/fileutils/assets.go
'';
postInstall = ''
mkdir -p $out/share
cp -r assets $out/share/assets
chmod -R a+rx $out/share/assets
wrapProgram "$out/bin/hover" \
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath libs}
'';
postFixup = ''
addOpenGLRunpath $out/bin/hover
'';
};
in
buildFHSUserEnv rec {
name = pname;
targetPkgs = pkgs: [
dejavu_fonts
flutter
gcc
go
hover
pkgconfig
roboto
] ++ libs;
runScript = "hover";
} If @ericdallo can update this PR we probably can get his merged. |
Yes, thanks for all the help @thiagokokada, I'll update it |
c47056a
to
91cea53
Compare
@ericdallo Can you update the commit message? You are using version 0.4.3, not 2020-01-03. |
@GrahamcOfBorg build hover |
91cea53
to
9b2b4af
Compare
After 7 months and the help of @thiagokokada I think we are good to go here @jonringer 🎉 |
homepage = "https://github.com/go-flutter-desktop/hover"; | ||
license = licenses.bsd3; | ||
platforms = platforms.linux ++ platforms.darwin; | ||
maintainers = [ maintainers.ericdallo maintainers.thiagokokada]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 .
@jonringer Can we have this PR merged? |
Motivation for this change
Add hover command to be able to run flutter mobile apps on desktop.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)