From 5cfbcf2df92c9145a1822f3084221684bf402bd7 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Mon, 14 Aug 2023 19:22:48 +0200 Subject: [PATCH] fix(nix): Set buildInputs --- flake.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index c25bb32..9689201 100644 --- a/flake.nix +++ b/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; }; };