mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
tests.devShellTools: Fix release.nix / ofborg eval
This commit is contained in:
parent
b3561f17f6
commit
32c9e3193c
@ -13,14 +13,23 @@ let
|
|||||||
concatLines
|
concatLines
|
||||||
escapeShellArg
|
escapeShellArg
|
||||||
isString
|
isString
|
||||||
|
mapAttrs
|
||||||
mapAttrsToList
|
mapAttrsToList
|
||||||
;
|
;
|
||||||
in
|
in
|
||||||
lib.recurseIntoAttrs {
|
lib.recurseIntoAttrs {
|
||||||
|
|
||||||
nixos = lib.recurseIntoAttrs {
|
nixos = lib.recurseIntoAttrs (
|
||||||
inherit (nixosTests) docker-tools-nix-shell;
|
# This should have been a simple optioanlAttrs, but release.nix is very picky.
|
||||||
};
|
# > cannot find attribute `tests.devShellTools.nixos.docker-tools-nix-shell'
|
||||||
|
let
|
||||||
|
tests = {
|
||||||
|
inherit (nixosTests) docker-tools-nix-shell;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
if stdenv.hostPlatform.system == "x86_64-linux" then tests else
|
||||||
|
mapAttrs (k: v: emptyFile) tests
|
||||||
|
);
|
||||||
|
|
||||||
# nix-build -A tests.devShellTools.valueToString
|
# nix-build -A tests.devShellTools.valueToString
|
||||||
valueToString =
|
valueToString =
|
||||||
|
Loading…
Reference in New Issue
Block a user