diff options
| author | seth <[email protected]> | 2023-12-01 03:16:46 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-01 03:17:13 -0500 |
| commit | 47b69d937ed944aaa41fa80661cdfa9ec72246ca (patch) | |
| tree | c94be659d605a0ce14cca102799245d84fd40feb /parts/derivation.nix | |
| parent | 6dddb6d11b95496a360b5c820447325996cd9291 (diff) | |
flake: fix darwin support
Diffstat (limited to 'parts/derivation.nix')
| -rw-r--r-- | parts/derivation.nix | 12 |
1 files changed, 11 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]; }; } |
