Skip to content

git immediately dies on aarch64-darwin #208951

@Sciencentistguy

Description

@Sciencentistguy

Describe the bug

Running git from nixpkgs master nix shell github:nixos/nixpkgs/master#git fails (it is sent signal 9 by the OS)

This appears to be a codesigning issue: (from the system log)

Termination Reason:    Namespace CODESIGNING, Code 2 

Forcing nix to build git locally solves the problem: nix-shell --pure --run "git" with default.nix:

with import <nixpkgs> {}; let
  git = pkgs.git.overrideAttrs (old: {
      rebuildMe = true;
    });
in
  mkShell {
    buildInputs = [git];
  }

Steps To Reproduce

Steps to reproduce the behavior:

  1. be on aarch64-darwin
  2. run git
  3. zsh: killed git

Expected behavior

git should work

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Notify maintainers

@NixOS/darwin-maintainers
@primeos
@wmertens
@globin

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.6.0, macOS 12.5.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.12.0`
 - channels(jamie): `""`
 - channels(root): `""`
 - nixpkgs: `/etc/nix/path/nixpkgs`

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: darwinRunning or building packages on Darwin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions