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

verifpal: init at 0.2 #67607

Merged
merged 2 commits into from Aug 30, 2019
Merged

verifpal: init at 0.2 #67607

merged 2 commits into from Aug 30, 2019

Conversation

zimbatm
Copy link
Member

@zimbatm zimbatm commented Aug 28, 2019

Motivation for this change

Done for the NLNet PET program

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/)
  • 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.
Notify maintainers

cc @

@zimbatm zimbatm added the 6.topic: NLNet / NGI The project is part of the NGI funding grant. https://nlnet.nl/NGI/ label Aug 28, 2019
@zimbatm zimbatm self-assigned this Aug 28, 2019
pkgs/development/tools/pigeon/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/pigeon/default.nix Outdated Show resolved Hide resolved
pkgs/tools/security/verifpal/default.nix Outdated Show resolved Hide resolved
};

postPatch = ''
sed -e 's|/bin/echo|echo|g' -i Makefile
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be neater to use a patch here? perhaps even patchShebangs would work

Copy link
Member Author

Choose a reason for hiding this comment

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

the Makefile has a lot of @/bin/echo "Some message" lines. This will be more resilient to change when upstream adds more directives. I will make it even more resilient like this:

-    sed -e 's|/bin/echo|echo|g' -i Makefile
+    sed -e 's|/bin/echo |echo |g' -i Makefile

patchShebangs only works on the first line of the scripts

sha256 = "1n0zqidwbqqfslrirpbqw14ylgiry6ggcp9ll4h8rf1chqwk6dhv";
};

meta = {
Copy link
Contributor

Choose a reason for hiding this comment

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

would this be neater with meta = with lib; {

Copy link
Member Author

Choose a reason for hiding this comment

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

I am trying to limit the scope of with as much as possible since it creates implicit dependencies. Also it would save 8 characters below and adds 10 characters.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fair enough, I was just going off of what is usually done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: NLNet / NGI The project is part of the NGI funding grant. https://nlnet.nl/NGI/ 8.has: package (new) 10.rebuild-darwin: 0 10.rebuild-linux: 0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants