fix(nix): Set buildInputs
This commit is contained in:
parent
f0e670d99f
commit
5cfbcf2df9
1 changed files with 14 additions and 5 deletions
13
flake.nix
13
flake.nix
|
@ -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; };
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue