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

Package "codesign" on Darwin #37838

Closed
matthewbauer opened this issue Mar 26, 2018 · 1 comment
Closed

Package "codesign" on Darwin #37838

matthewbauer opened this issue Mar 26, 2018 · 1 comment
Labels
6.topic: darwin Running or building packages on Darwin
Milestone

Comments

@matthewbauer
Copy link
Member

Issue description

It looks like Apple publishes sources for its codesign utility:

https://opensource.apple.com/source/Security/Security-57031.40.6/codesign_wrapper/Makefile.auto.html

This is a good first step toward fixing #18420 and #17406. Once "codesign" is available in the environment we can start doing something like this for gdb:

gdb_signed = buildEnv {
  name = "gdb-signed";
  paths = [ gdb ];
  postBuild = ''
    ${darwin.codesign}/bin/codesign -s ${cert} $out/bin/gdb
  '';
}

Where "cert" can be provided as a config option to Nixpkgs (and eventually we can configure it on the Hydra build machines).

@matthewbauer matthewbauer added this to the 18.09 milestone Mar 26, 2018
@matthewbauer matthewbauer added the 6.topic: darwin Running or building packages on Darwin label Mar 26, 2018
@LnL7
Copy link
Member

LnL7 commented Mar 29, 2018

I made a wip commit for codesigning based on the security wrapper module from nixos. But it does this on every rebuild and signing depends on an interactive password prompt.

LnL7/nix-darwin@a008b2e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin
Projects
Status: Big Sur
Development

Successfully merging a pull request may close this issue.

2 participants