flake: fix darwin build

This commit is contained in:
figsoda 2023-01-10 20:56:44 -05:00
parent 7d16f88e0c
commit 6d07a44504

View File

@ -6,7 +6,7 @@
outputs = { self, nixpkgs }:
let
inherit (nixpkgs.lib)
genAttrs importTOML licenses makeBinPath maintainers;
genAttrs importTOML licenses makeBinPath maintainers optionals;
inherit (importTOML (self + "/Cargo.toml")) package;
forEachSystem = genAttrs [
@ -28,7 +28,7 @@
packages = forEachSystem (system:
let
inherit (nixpkgs.legacyPackages.${system})
gitMinimal installShellFiles makeWrapper mercurial nix rustPlatform;
darwin gitMinimal installShellFiles makeWrapper mercurial nix rustPlatform stdenv;
in
{
default = rustPlatform.buildRustPackage {
@ -44,6 +44,10 @@
makeWrapper
];
buildInputs = optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
# tests require internet access
doCheck = false;