Skip to content

Commit d4eecf0

Browse files
committed
handy: pin src to cjpais/Handy#1316 HEAD with -parse-as-library fix
Without this swiftc flag the app exits with 0 immediately on nixpkgs Darwin stdenv, because the open-source ld64 picks Swift's synthetic `_main` over Rust's. The fix is one line in src-tauri/build.rs. Cargo.lock, package.json and bun.lock are unchanged between the old and new src rev, so cargoHash and frontendDepsHashes remain valid.
1 parent f60abb3 commit d4eecf0

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

pkgs/by-name/ha/handy/package.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,16 @@ rustPlatform.buildRustPackage (
105105

106106
__structuredAttrs = true;
107107

108-
# TEMPORARY: pin to cjpais/Handy#1256 for .nix/scripts/normalize-install.ts.
109-
# Revert to tag = "v${finalAttrs.version}" after #1256 merges and is released.
108+
# TEMPORARY: pin to the HEAD of cjpais/Handy#1316 (the -parse-as-library
109+
# swiftc fix) applied on top of current main. Without this fix the app
110+
# exits with 0 immediately on nixpkgs Darwin stdenv.
111+
# Revert to tag = "v${finalAttrs.version}" after #1316 merges and ships in
112+
# a Handy release.
110113
src = fetchFromGitHub {
111114
owner = "cjpais";
112115
repo = "Handy";
113-
rev = "681c6a991b7e55bd04ef9963aeb45767ebacba2e";
114-
hash = "sha256-9SfVRef31Ak4H4yEUmw0R8ySqWV9F98LUhSCH+rGw/I=";
116+
rev = "1a683fb4fe59b9e4192c2f330e023dce5a43b699";
117+
hash = "sha256-PQCG+SgcGf2Ieg+DNww9keYi7W3+ysRV9Y+5jwqux2M=";
115118
};
116119

117120
cargoRoot = "src-tauri";

0 commit comments

Comments
 (0)