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

lkvm: init from https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git #72699

Closed
wants to merge 1 commit into from

Conversation

zokrezyl
Copy link
Contributor

@zokrezyl zokrezyl commented Nov 3, 2019

Motivation for this change

New expression

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@zokrezyl
Copy link
Contributor Author

zokrezyl commented Nov 9, 2019

Hi, any chance to get this merged?

pkgs/os-specific/linux/lkvm/default.nix Outdated Show resolved Hide resolved
pkgs/os-specific/linux/lkvm/default.nix Outdated Show resolved Hide resolved
pkgs/os-specific/linux/lkvm/default.nix Outdated Show resolved Hide resolved
pkgs/os-specific/linux/lkvm/default.nix Outdated Show resolved Hide resolved
buildInputs = [ libbfd zlib libaio glibc glibc.static];

buildPhase = ''
make all
Copy link
Contributor

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.

Copy link
Contributor

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?

pkgs/os-specific/linux/lkvm/default.nix Outdated Show resolved Hide resolved
pkgs/os-specific/linux/lkvm/default.nix Outdated Show resolved Hide resolved
pkgs/os-specific/linux/lkvm/default.nix Outdated Show resolved Hide resolved
{ stdenv, fetchgit, libbfd, zlib, libaio, glibc }:

stdenv.mkDerivation {
name = "kvmtool";
Copy link
Member

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];
Copy link
Contributor

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:

Suggested change
buildInputs = [ libbfd zlib libaio glibc glibc.static];
buildInputs = [
libbfd
zlib
libaio
glibc
glibc.static # for guest init
];

@SuperSandro2000 SuperSandro2000 marked this pull request as draft November 28, 2020 23:04
@stale
Copy link

stale bot commented Jun 3, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2021
@Profpatsch
Copy link
Member

closing as abandoned

@Profpatsch Profpatsch closed this Jun 14, 2021
@ajs124 ajs124 mentioned this pull request Apr 8, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants