diff options
| -rw-r--r-- | parts/derivation.nix | 12 | ||||
| -rw-r--r-- | parts/packages.nix | 7 |
2 files changed, 18 insertions, 1 deletions
diff --git a/parts/derivation.nix b/parts/derivation.nix index 607a606..061baea 100644 --- a/parts/derivation.nix +++ b/parts/derivation.nix @@ -1,6 +1,10 @@ { lib, + stdenv, naersk, + CoreFoundation, + Security, + SystemConfiguration, self, lto ? false, optimizeSize ? false, @@ -31,6 +35,12 @@ in src = filterSource ../.; + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ + CoreFoundation + Security + SystemConfiguration + ]; + GIT_SHA = builtins.substring 0 7 self.rev or "dirty"; RUSTFLAGS = @@ -42,7 +52,7 @@ in description = "funni bot"; homepage = "https://github.com/getchoo/teawiebot"; license = licenses.mit; - platforms = with platforms; unix; + platforms = with platforms; linux ++ darwin; maintainers = with maintainers; [getchoo]; }; } diff --git a/parts/packages.nix b/parts/packages.nix index 8ca9972..4e1ab27 100644 --- a/parts/packages.nix +++ b/parts/packages.nix @@ -12,6 +12,13 @@ packages = { teawiebot = pkgs.callPackage ./derivation.nix { inherit self; + inherit + (pkgs.darwin.apple_sdk.frameworks) + CoreFoundation + Security + SystemConfiguration + ; + naersk = inputs.naersk.lib.${system}; }; |
