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
lkvm: init from https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git #72699
Conversation
Hi, any chance to get this merged? |
buildInputs = [ libbfd zlib libaio glibc glibc.static]; | ||
|
||
buildPhase = '' | ||
make all |
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.
You can use buildFlags = [ "all" ];
but reading https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git/tree/INSTALL, the default buildPhase
should be enough.
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.
This does not seem to be resolved. What happens when you remove the buildPhase
and leave it to the default value?
{ stdenv, fetchgit, libbfd, zlib, libaio, glibc }: | ||
|
||
stdenv.mkDerivation { | ||
name = "kvmtool"; |
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.
This should be pname
(or include the version.)
Specifying a name and a src is the absolute minimum Nix requires. For convenience, you can also use pname and version attributes and mkDerivation will automatically set name to "${pname}-${version}" by default. Since RFC 0035, this is preferred for packages in Nixpkgs
— https://nixos.org/nixpkgs/manual/#sec-using-stdenv
This is for nix-env
, where it only looks at the name
field of derivations to distinguish between versions.
sha256 = "0kyb3rm98wzwgjs06crcgb39547rr4px4vap8ivm7yqnwbphr67f"; | ||
}; | ||
|
||
buildInputs = [ libbfd zlib libaio glibc glibc.static]; |
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.
Maybe add a comment why static glibc is needed:
buildInputs = [ libbfd zlib libaio glibc glibc.static]; | |
buildInputs = [ | |
libbfd | |
zlib | |
libaio | |
glibc | |
glibc.static # for guest init | |
]; |
I marked this as stale due to inactivity. → More info |
closing as abandoned |
Motivation for this change
New expression
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)