fix(nix): Set buildInputs for file_system dep

This commit is contained in:
Daniel Kempkens 2023-08-14 19:36:01 +02:00
parent 5cfbcf2df9
commit 23efd52c2a
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 12 additions and 9 deletions

View file

@ -123,15 +123,8 @@
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 pkgs lib beamPackages; };
}; };
process-compose."${pname}-dev" = process-compose."${pname}-dev" =

12
mix.nix
View file

@ -1,10 +1,13 @@
{ lib, beamPackages, overrides ? (x: y: { }) }: { pkgs, lib, beamPackages, overrides ? (x: y: { }) }:
let let
buildRebar3 = lib.makeOverridable beamPackages.buildRebar3; buildRebar3 = lib.makeOverridable beamPackages.buildRebar3;
buildMix = lib.makeOverridable beamPackages.buildMix; buildMix = lib.makeOverridable beamPackages.buildMix;
buildErlangMk = lib.makeOverridable beamPackages.buildErlangMk; buildErlangMk = lib.makeOverridable beamPackages.buildErlangMk;
inherit (pkgs.stdenv) isDarwin;
inherit (pkgs.stdenv) isLinux;
self = packages // (overrides self packages); self = packages // (overrides self packages);
packages = with beamPackages; with self; { packages = with beamPackages; with self; {
@ -148,6 +151,13 @@ let
sha256 = "1p0myxmnjjds8bbg69dd6fvhk8q3n7lb78zd4qvmjajnzgdmw6a1"; sha256 = "1p0myxmnjjds8bbg69dd6fvhk8q3n7lb78zd4qvmjajnzgdmw6a1";
}; };
buildInputs = [ ] ++ lib.optionals isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
CoreFoundation
CoreServices
]) ++ lib.optionals isLinux (with pkgs; [
inotify-tools
]);
beamDeps = [ ]; beamDeps = [ ];
}; };