Skip to content

Commit 60fcd06

Browse files
tomrfitzclaude
andcommitted
Fix vesktop build on darwin via overlay
Upstream electron-builder no longer respects CSC_IDENTITY_AUTO_DISCOVERY; pass -c.mac.identity=null directly instead. Mirrors NixOS/nixpkgs#489725. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 12f35ce commit 60fcd06

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

flake.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@
6262
darwinConfigurations.trfmbp = nix-darwin.lib.darwinSystem {
6363
specialArgs = { inherit agenix user; };
6464
modules = [
65-
{ nixpkgs.hostPlatform = "aarch64-darwin"; }
65+
{
66+
nixpkgs.hostPlatform = "aarch64-darwin";
67+
nixpkgs.overlays = [ (import ./overlays/vesktop-darwin.nix) ];
68+
}
6669
./hosts/trfmbp
6770
home-manager.darwinModules.home-manager
6871
(mkHM [

overlays/vesktop-darwin.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Fix vesktop build on macOS — codesign not available in Nix sandbox.
2+
# Upstream: https://github.com/NixOS/nixpkgs/pull/489725
3+
# Remove once that PR lands in nixpkgs-unstable.
4+
final: prev:
5+
prev.lib.optionalAttrs prev.stdenv.hostPlatform.isDarwin {
6+
vesktop = prev.vesktop.overrideAttrs (old: {
7+
postConfigure = "";
8+
buildPhase =
9+
builtins.replaceStrings [ "-c.electronVersion=" ] [ "-c.mac.identity=null -c.electronVersion=" ]
10+
old.buildPhase;
11+
});
12+
}

0 commit comments

Comments
 (0)