mirror of
https://github.com/hercules-ci/arion.git
synced 2024-08-17 06:30:29 +03:00
Pass system through project nix files
This commit is contained in:
parent
ba6fa62c4a
commit
61cc348281
@ -1,4 +1,4 @@
|
||||
args@{ pkgs ? import ./nix args, ... }:
|
||||
args@{ pkgs ? import ./nix args, system ? null, ... }:
|
||||
|
||||
{
|
||||
inherit (pkgs) arion tests;
|
||||
|
@ -1,8 +1,12 @@
|
||||
/**
|
||||
* This is the entry-point for all nix execution in this project.
|
||||
*/
|
||||
{ nixpkgsSrc ? ./nixpkgs.nix, ... }:
|
||||
import (import ./nixpkgs.nix) {
|
||||
{ nixpkgsSrc ? ./nixpkgs.nix
|
||||
, system ? null
|
||||
, ...
|
||||
}:
|
||||
|
||||
import (import ./nixpkgs.nix) ({
|
||||
# Makes the config pure as well. See <nixpkgs>/top-level/impure.nix:
|
||||
config = {
|
||||
};
|
||||
@ -10,4 +14,6 @@ import (import ./nixpkgs.nix) {
|
||||
# all the packages are defined there:
|
||||
(import ./overlay.nix)
|
||||
];
|
||||
}
|
||||
} // (if system == null then {} else {
|
||||
inherit system;
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user