fix(nix): Set buildInputs
This commit is contained in:
parent
f0e670d99f
commit
5cfbcf2df9
1 changed files with 14 additions and 5 deletions
19
flake.nix
19
flake.nix
|
@ -59,6 +59,7 @@
|
|||
postgres = pkgs.postgresql_15;
|
||||
|
||||
inherit (pkgs.stdenv) isDarwin;
|
||||
inherit (pkgs.stdenv) isLinux;
|
||||
inherit (gitignore.lib) gitignoreSource;
|
||||
in
|
||||
{
|
||||
|
@ -97,11 +98,12 @@
|
|||
erlang
|
||||
elixir
|
||||
postgres
|
||||
] ++ lib.optionals isDarwin (with pkgs.darwin.apple_sdk.frameworks;
|
||||
[
|
||||
CoreFoundation
|
||||
CoreServices
|
||||
]);
|
||||
] ++ lib.optionals isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
|
||||
CoreFoundation
|
||||
CoreServices
|
||||
]) ++ lib.optionals isLinux (with pkgs; [
|
||||
inotify-tools
|
||||
]);
|
||||
|
||||
packages = [
|
||||
pkgs.mix2nix
|
||||
|
@ -121,6 +123,13 @@
|
|||
packages.default = beamPackages.mixRelease {
|
||||
inherit pname version;
|
||||
|
||||
buildInputs = [ ] ++ lib.optionals isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
|
||||
CoreFoundation
|
||||
CoreServices
|
||||
]) ++ lib.optionals isLinux (with pkgs; [
|
||||
inotify-tools
|
||||
]);
|
||||
|
||||
src = gitignoreSource ./.;
|
||||
mixNixDeps = import ./mix.nix { inherit lib beamPackages; };
|
||||
};
|
||||
|
|
Reference in a new issue