Skip to content

Commit

Permalink
flake: remove old Darwin SDK pattern detritus
Browse files Browse the repository at this point in the history
None of this is required or does anything as of 24.11.
  • Loading branch information
emilazy committed Jan 10, 2025
1 parent 62537fa commit 4a8c851
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

optionalPathToDeterminateNixd = system: if builtins.elem system systemsSupportedByDeterminateNixd then "${inputs.determinate.packages.${system}.default}/bin/determinate-nixd" else null;

installerPackage = { lib, pkgs, stdenv, buildPackages, darwin }:
installerPackage = { pkgs, stdenv, buildPackages }:
let
craneLib = crane.mkLib pkgs;
sharedAttrs = {
Expand All @@ -66,12 +66,6 @@
# Required to link build scripts.
pkgsBuildBuild = [ buildPackages.stdenv.cc ];

nativeBuildInputs = [ ];
buildInputs = [ ] ++ lib.optionals (stdenv.isDarwin) (with darwin.apple_sdk.frameworks; [
SystemConfiguration
darwin.libiconv
]);

env = {
# For whatever reason, these don’t seem to get set
# automatically when using crane.
Expand Down Expand Up @@ -139,11 +133,6 @@
check.check-clippy
editorconfig-checker
]
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [
libiconv
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
])
++ lib.optionals (pkgs.stdenv.isLinux) (with pkgs; [
checkpolicy
semodule-utils
Expand Down

0 comments on commit 4a8c851

Please sign in to comment.