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

flamegraph: 2017-07-01 -> 2019-02-16 #70876

Merged
merged 1 commit into from Oct 17, 2019
Merged

flamegraph: 2017-07-01 -> 2019-02-16 #70876

merged 1 commit into from Oct 17, 2019

Conversation

cko
Copy link
Member

@cko cko commented Oct 9, 2019

Motivation for this change

Updating flamegraph

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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/)
    • I tested stackcollapse-perf.pl and flamegraph.pl
  • 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.

@mmahut
Copy link
Member

mmahut commented Oct 10, 2019

@GrahamcOfBorg build flamegraph

@@ -21,7 +21,7 @@ stdenv.mkDerivation {

meta = with stdenv.lib; {
license = licenses.cddl;
Copy link
Contributor

@c0bw3b c0bw3b Oct 15, 2019

Choose a reason for hiding this comment

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

Suggested change
license = licenses.cddl;
license = with licenses; [ asl20 cddl gpl2Plus ];

Looking at some of the scripts' headers it seems they come under one of these licenses.

@c0bw3b
Copy link
Contributor

c0bw3b commented Oct 15, 2019

When overriding an entire phase, it's best practice to call pre- and post- hooks in case they are needed later on.

installPhase = ''
  runHook preInstall
  [...]
  runHook postInstall
'';

@cko
Copy link
Member Author

cko commented Oct 17, 2019

@c0bw3b I implemented the proposed changes and updated the PR.

@c0bw3b
Copy link
Contributor

c0bw3b commented Oct 17, 2019

@GrahamcOfBorg build flamegraph

@c0bw3b
Copy link
Contributor

c0bw3b commented Oct 17, 2019

Thanks @cko

@c0bw3b c0bw3b merged commit 7c0c965 into NixOS:master Oct 17, 2019
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

3 participants