A macOS utility to track home-manager JJ repo status

Remove dev shell and document why tests cannot run in nix build #3

merged opened by nolith.dev targeting main from ac/push-otompxxxtqyl

Remove the devShells.default — nix fmt already provides swift-format via treefmt, and nix build handles production builds. The dev shell added no value beyond what these commands already provide.

Document doCheck = false: SwiftPM's swift-test requires xcrun --find xctest which needs Xcode, and corelibs-xctest in nix only provides the library, not the runner. No Swift package in nixpkgs has solved this — tests require Xcode: swift test

AI-assisted: GitLab Duo Agentic Chat (Claude Sonnet 4)

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:nzep3slobztdph3kxswzbing/sh.tangled.repo.pull/3mgcui75oab22
+6 -5
Diff #0
-5
flake.nix
··· 48 48 }; 49 49 }; 50 50 51 - devShells.default = pkgs.mkShell { 52 - packages = with pkgs; [ 53 - swift-format 54 - ]; 55 - }; 56 51 }; 57 52 }; 58 53 }
+6
nix/package.nix
··· 28 28 apple-sdk_14 29 29 ]; 30 30 31 + # Tests cannot run during nix build: SwiftPM's `swift-test` requires 32 + # `xcrun --find xctest` which needs Xcode, and corelibs-xctest in nix 33 + # only provides the library, not the runner. No Swift package in nixpkgs 34 + # has solved this — all have doCheck disabled or commented out. 35 + doCheck = false; 36 + 31 37 # buildPhase is provided automatically by swiftpm's setup hook: 32 38 # swift-build -c release 33 39

History

1 round 0 comments
sign up or login to add to the discussion
nolith.dev submitted #0
1 commit
expand
Remove dev shell and document why tests cannot run in nix build
1/1 success
expand
expand 0 comments
pull request successfully merged