Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fvm: init at 3.2.1 #368392

wants to merge 2 commits into from

Conversation

MH0386
Copy link

@MH0386 MH0386 commented Dec 26, 2024

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1 10.rebuild-linux: 1 labels Dec 26, 2024
Copy link
Contributor

@thiagokokada thiagokokada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow CONTRIBUTING guidelines for commit messages.

maintainers: add MH0386
fvm: init at 3.2.1

cmake
];

shellHook = ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why shellHook?

Copy link
Contributor

@thiagokokada thiagokokada Dec 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you want to set env.PKG_CONFIG_PATH and env.LD_LIBRARY_PATH instead. Or if you really need to keep the current environment, use preBuild or something else.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is very likely that once you add gtk3 to buildInputs, this becomes unnecessary.

passthru.updateScript = nix-update-script { };

postInstall = ''
export HOME=$TMPDIR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export HOME=$TMPDIR
export HOME=$(mktemp -d)

Comment on lines +33 to +34
export PKG_CONFIG_PATH=${gtk3.dev}/lib/pkgconfig
export LD_LIBRARY_PATH=${gtk3.out}/lib:$LD_LIBRARY_PATH
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export PKG_CONFIG_PATH=${gtk3.dev}/lib/pkgconfig
export LD_LIBRARY_PATH=${gtk3.out}/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=${lib.getDev gtk3}/lib/pkgconfig
export LD_LIBRARY_PATH=${gtk3}/lib:$LD_LIBRARY_PATH

Copy link
Contributor

Choose a reason for hiding this comment

The 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?

Comment on lines +25 to +30
nativeBuildInputs = [
clang
pkg-config
gtk3
cmake
];
Copy link
Contributor

@thiagokokada thiagokokada Dec 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nativeBuildInputs = [
clang
pkg-config
gtk3
cmake
];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [ gtk3 ];

If you really need clang instead of gcc, please override stdenv for buildDartApplication:

buildDartApplication.override { stdenv = clangStdenv; } { ... }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 10.rebuild-linux: 1 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants