Skip to content

Commit 4eff5be

Browse files
committed
Update inputs and sign fish
1 parent 63fbdcf commit 4eff5be

2 files changed

Lines changed: 25 additions & 9 deletions

File tree

common/darwin.nix

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
pkgs,
33
pkgs-unstable,
4+
lib,
45
inputs,
56
hostConfiguration,
67
git-format-staged,
@@ -13,6 +14,21 @@
1314
system.primaryUser = hostConfiguration.username;
1415
ids.gids.nixbld = 350;
1516

17+
# Workaround: fish 4.2.1 in nixpkgs ships with an invalid ad-hoc signature
18+
# on aarch64-darwin, so the kernel refuses to exec it. Re-sign in postFixup.
19+
nixpkgs.overlays = [
20+
(_: prev: {
21+
fish = prev.fish.overrideAttrs (old: {
22+
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [prev.darwin.sigtool];
23+
postFixup =
24+
(old.postFixup or "")
25+
+ ''
26+
codesign --force --sign - $out/bin/fish
27+
'';
28+
});
29+
})
30+
];
31+
1632
environment.shells = with pkgs; [zsh fish];
1733

1834
services.tailscale.enable = true;

flake.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)