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

libvmi: init at 3e4114 #26162

Merged
merged 1 commit into from Jul 4, 2018
Merged

libvmi: init at 3e4114 #26162

merged 1 commit into from Jul 4, 2018

Conversation

proteansec
Copy link
Contributor

Motivation for this change
Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

sha256 = "0vbmrj0ij19i55afkqj64q7sgh0scpwk3c99qx6p6gn1qcy2wdss";
};

buildInputs = [ glib xen which yacc bison flex libtool autoconf automake pkgconfig libvirt ];
Copy link
Member

Choose a reason for hiding this comment

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

- buildInputs = [ glib xen which yacc bison flex libtool autoconf automake pkgconfig libvirt ]; 
+ buildInputs = [ glib xen which libvirt ]; # probably which too.
+ nativeBuildInputs = [ yacc bison flex libtool autoconf automake pkgconfig ]; 


stdenv.mkDerivation rec {
name = "libvirt-${version}";
version = "20170527-${stdenv.lib.strings.substring 0 7 rev}";
Copy link
Member

Choose a reason for hiding this comment

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

we prefer to have a numeric value at the end, to make it sortable for nix-env -u. See also https://nixos.org/nixpkgs/manual/#sec-package-naming

nativeBuildInputs = [ yacc bison flex libtool autoconf automake pkgconfig ];

preConfigure = ''
./autogen.sh
Copy link
Member

Choose a reason for hiding this comment

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

use autoreconfHook instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the tip, fixed.

with stdenv.lib;

stdenv.mkDerivation rec {
name = "libvirt-${version}";
Copy link
Member

Choose a reason for hiding this comment

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

Should be libvmi.

@infinisil
Copy link
Member

#42683

@infinisil infinisil closed this Jul 4, 2018
@infinisil infinisil merged commit b03bdc3 into NixOS:master Jul 4, 2018
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

6 participants