-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
fvm: init at 3.2.1 #368392
base: master
Are you sure you want to change the base?
fvm: init at 3.2.1 #368392
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14585,6 +14585,12 @@ | |
githubId = 68288772; | ||
name = "Markus Heinrich"; | ||
}; | ||
MH0386 = { | ||
name = "Mohamed Hisham Abdelzaher"; | ||
email = "[email protected]"; | ||
github = "MH0386"; | ||
githubId = 77013511; | ||
}; | ||
mh182 = { | ||
email = "[email protected]"; | ||
github = "mh182"; | ||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,52 @@ | ||||||||||
{ | ||||||||||
buildDartApplication, | ||||||||||
clang, | ||||||||||
pkg-config, | ||||||||||
gtk3, | ||||||||||
cmake, | ||||||||||
fetchFromGitHub, | ||||||||||
nix-update-script, | ||||||||||
lib, | ||||||||||
}: | ||||||||||
|
||||||||||
buildDartApplication rec { | ||||||||||
pname = "fvm"; | ||||||||||
version = "3.2.1"; | ||||||||||
|
||||||||||
src = fetchFromGitHub { | ||||||||||
owner = "leoafarias"; | ||||||||||
repo = pname; | ||||||||||
tag = version; | ||||||||||
hash = "sha256-i7sJRBrS5qyW8uGlx+zg+wDxsxgmolTMcikHyOzv3Bs="; | ||||||||||
}; | ||||||||||
|
||||||||||
pubspecLock = lib.importJSON ./pubspec.lock.json; | ||||||||||
|
||||||||||
nativeBuildInputs = [ | ||||||||||
clang | ||||||||||
pkg-config | ||||||||||
gtk3 | ||||||||||
cmake | ||||||||||
]; | ||||||||||
|
||||||||||
shellHook = '' | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you want to set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is very likely that once you add |
||||||||||
export PKG_CONFIG_PATH=${gtk3.dev}/lib/pkgconfig | ||||||||||
export LD_LIBRARY_PATH=${gtk3.out}/lib:$LD_LIBRARY_PATH | ||||||||||
Comment on lines
+33
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks really strange though, are you sure the build doesn't work without this being set? |
||||||||||
''; | ||||||||||
|
||||||||||
dontUseCmakeConfigure = true; | ||||||||||
|
||||||||||
passthru.updateScript = nix-update-script { }; | ||||||||||
|
||||||||||
postInstall = '' | ||||||||||
export HOME=$TMPDIR | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
''; | ||||||||||
|
||||||||||
meta = { | ||||||||||
description = "Flutter Version Management: A simple CLI to manage Flutter SDK versions."; | ||||||||||
homepage = "https://fvm.app"; | ||||||||||
license = lib.licenses.mit; | ||||||||||
platforms = lib.platforms.all; | ||||||||||
maintainers = [ lib.maintainers.MH0386 ]; | ||||||||||
}; | ||||||||||
} |
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.
If you really need
clang
instead ofgcc
, please override stdenv forbuildDartApplication
: