Skip to content

Commit

Permalink
flake: update nixpkgs
Browse files Browse the repository at this point in the history
stdenv now sets DEVELOPER_DIR and SDKROOT to a Nixpkgs-internal SDK,
unset if we want the platform Xcode SDK
  • Loading branch information
mroi committed Dec 27, 2024
1 parent c919377 commit ac261dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@
};
outputs = { self, nixpkgs, acextract, command-line, dsc-extractor, snap-util }: {
packages.x86_64-darwin = let
xcode = (nixpkgs.legacyPackages.x86_64-darwin.xcodeenv.composeXcodeWrapper {
version = "16.0";
}).overrideAttrs (attrs: { buildCommand = ''
# see https://github.com/NixOS/nixpkgs/pull/322641
set +o pipefail
'' + attrs.buildCommand; });
xcode = nixpkgs.legacyPackages.x86_64-darwin.xcodeenv.composeXcodeWrapper {};

in {

Expand Down Expand Up @@ -104,7 +99,10 @@
name = "snap-util-${lib.substring 0 8 self.inputs.snap-util.lastModifiedDate}";
src = snap-util;
nativeBuildInputs = [ xcode ];
preBuild = "NIX_CFLAGS_COMPILE='-idirafter ${snapshot-header}/bsd'";
preBuild = ''
unset DEVELOPER_DIR SDKROOT
NIX_CFLAGS_COMPILE='-idirafter ${snapshot-header}/bsd'
'';
installPhase = ''
mkdir -p $out/bin
cp snapUtil $out/bin/.snapUtil-wrapped
Expand Down

0 comments on commit ac261dd

Please sign in to comment.