forked from auxolotl/core
Merge pull request #4 from getchoo/export-lib
This commit is contained in:
commit
cbe7a41cc8
18
flake.nix
18
flake.nix
|
@ -3,26 +3,24 @@
|
||||||
nixpkgs.url = "github:auxolotl/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:auxolotl/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }:
|
outputs =
|
||||||
|
{ self, nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
lib = import ./lib;
|
forAllSystems = self.lib.genAttrs self.lib.systems.flakeExposed;
|
||||||
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixPackages = forAllSystems (system:
|
lib = import ./lib;
|
||||||
nixpkgs.legacyPackages.${system}
|
|
||||||
);
|
nixPackages = forAllSystems (system: nixpkgs.legacyPackages.${system});
|
||||||
|
|
||||||
# auxPackages = forAllSystems (system:
|
# auxPackages = forAllSystems (system:
|
||||||
# (import ./. { inherit system; })
|
# (import ./. { inherit system; })
|
||||||
# );
|
# );
|
||||||
|
|
||||||
# To test, run nix build .#tests.x86_64-linux.release
|
# To test, run nix build .#tests.x86_64-linux.release
|
||||||
tests = forAllSystems (system:
|
tests = forAllSystems (system: {
|
||||||
({
|
|
||||||
systems = import ./lib/tests/systems.nix;
|
systems = import ./lib/tests/systems.nix;
|
||||||
release = import ./lib/tests/release.nix { pkgs = self.nixPackages.${system}; };
|
release = import ./lib/tests/release.nix { pkgs = self.nixPackages.${system}; };
|
||||||
})
|
});
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue