fix(nix): Set buildInputs

This commit is contained in:
Daniel Kempkens 2023-08-14 19:22:48 +02:00
parent f0e670d99f
commit 5cfbcf2df9
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -59,6 +59,7 @@
postgres = pkgs.postgresql_15; postgres = pkgs.postgresql_15;
inherit (pkgs.stdenv) isDarwin; inherit (pkgs.stdenv) isDarwin;
inherit (pkgs.stdenv) isLinux;
inherit (gitignore.lib) gitignoreSource; inherit (gitignore.lib) gitignoreSource;
in in
{ {
@ -97,10 +98,11 @@
erlang erlang
elixir elixir
postgres postgres
] ++ lib.optionals isDarwin (with pkgs.darwin.apple_sdk.frameworks; ] ++ lib.optionals isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
[
CoreFoundation CoreFoundation
CoreServices CoreServices
]) ++ lib.optionals isLinux (with pkgs; [
inotify-tools
]); ]);
packages = [ packages = [
@ -121,6 +123,13 @@
packages.default = beamPackages.mixRelease { packages.default = beamPackages.mixRelease {
inherit pname version; inherit pname version;
buildInputs = [ ] ++ lib.optionals isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
CoreFoundation
CoreServices
]) ++ lib.optionals isLinux (with pkgs; [
inotify-tools
]);
src = gitignoreSource ./.; src = gitignoreSource ./.;
mixNixDeps = import ./mix.nix { inherit lib beamPackages; }; mixNixDeps = import ./mix.nix { inherit lib beamPackages; };
}; };