restrict hydraJobs to systems x64-64-linux and aarch64-linux
This commit is contained in:
parent
b7a1a6c07e
commit
d63eb2b9d1
21
flake.nix
21
flake.nix
@ -12,7 +12,8 @@
|
|||||||
utils,
|
utils,
|
||||||
naersk,
|
naersk,
|
||||||
}:
|
}:
|
||||||
utils.lib.eachDefaultSystem (
|
let
|
||||||
|
packageOutputs = utils.lib.eachDefaultSystem (
|
||||||
system:
|
system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
@ -71,9 +72,21 @@
|
|||||||
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
||||||
};
|
};
|
||||||
|
|
||||||
hydraJobs = {
|
# Only create hydra jobs for some systems
|
||||||
"music-reader" = defaultPackage;
|
# pkgs.lib.optionalAttrs (builtins.elem system ["x86_64-linux" "aarch64-linux"]) {
|
||||||
};
|
# hydraJobs =
|
||||||
|
# {
|
||||||
|
# "music-reader" = defaultPackage;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
in
|
||||||
|
packageOutputs
|
||||||
|
// {
|
||||||
|
hydraJobs = {
|
||||||
|
x86_64-linux.music-reader = packageOutputs.defaultPackage.x86_64-linux;
|
||||||
|
aarch64-linux.music-reader = packageOutputs.defaultPackage.aarch64-linux;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user