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

microsoft_gsl: init at 2017-02-13 #22852

Merged
merged 1 commit into from Feb 17, 2017
Merged

microsoft_gsl: init at 2017-02-13 #22852

merged 1 commit into from Feb 17, 2017

Conversation

d-xo
Copy link
Contributor

@d-xo d-xo commented Feb 15, 2017

Motivation for this change

add the GSL lib from microsoft

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.

@d-xo
Copy link
Contributor Author

d-xo commented Feb 15, 2017

This derivation executes the libraries unit tests. Is that the correct choice?

src = fetchgit {
url = "https://github.com/Microsoft/GSL.git";
rev = "3819df6e378ffccf0e29465afe99c3b324c2aa70";
sha256 = "03d17mnx6n175aakin313308q14wzvaa9pd0m1yfk6ckhha4qf35";
Copy link
Member

Choose a reason for hiding this comment

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

This would be better implemented with fetchFromGitHub:

fetchFromGitHub {
  owner = "Microsoft";
  repo = "GSL";
  rev = "3819df6e378ffccf0e29465afe99c3b324c2aa70";
  sha256 = "..."; # this will be different then the sha you already have
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used fetchgit instead of fetchFromGithub as I need the submodules to be checked out in order to run the test suite.

@globin globin merged commit 90d225d into NixOS:master Feb 17, 2017
@globin
Copy link
Member

globin commented Feb 17, 2017

Running unit tests is always good and using fetchgit is fine when using submodules, thanks! 👍

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

4 participants