Skip to content

Commit 3b46543

Browse files
committed
test: exercise Nix web base-path build
1 parent 423a259 commit 3b46543

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

flake.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,13 @@
198198
})
199199
];
200200
};
201-
webBasePath = evaluated.config.services.open-design.webFrontend.package.passthru.webBasePath;
201+
webPackage = evaluated.config.services.open-design.webFrontend.package;
202+
webBasePath = webPackage.passthru.webBasePath;
202203
in
203204
assert webBasePath == "/open-design";
204205
pkgs.runCommand "open-design-nixos-module-base-path" {} ''
206+
test -f ${webPackage}/.open-design-build.json
207+
grep -F '"basePath": "/open-design"' ${webPackage}/.open-design-build.json
205208
touch $out
206209
'';
207210
};

0 commit comments

Comments
 (0)