aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/default.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-06-25 03:59:52 +0900
committerOphestra <cat@gensokyo.uk>2025-06-25 04:57:41 +0900
commit87e008d56de974947ebb99c2cc40b25d3c2cf43e (patch)
tree31791911e5226d6ec04e3fac7d91b0bf53e63aa5 /test/default.nix
parent399207321265307bb15f37d867f9370cd51c82a8 (diff)
treewide: rename to hakurei
Fortify makes little sense for a container tool. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/default.nix')
-rw-r--r--test/default.nix28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/default.nix b/test/default.nix
index 385b3433..44ec3d73 100644
--- a/test/default.nix
+++ b/test/default.nix
@@ -10,18 +10,18 @@
}:
nixosTest {
- name = "fortify" + (if withRace then "-race" else "");
+ name = "hakurei" + (if withRace then "-race" else "");
nodes.machine =
{ options, pkgs, ... }:
let
fhs =
let
- fortify = options.environment.fortify.package.default;
+ hakurei = options.environment.hakurei.package.default;
in
buildFHSEnv {
- pname = "fortify-fhs";
- inherit (fortify) version;
- targetPkgs = _: fortify.targetPkgs;
+ pname = "hakurei-fhs";
+ inherit (hakurei) version;
+ targetPkgs = _: hakurei.targetPkgs;
extraOutputsToInstall = [ "dev" ];
profile = ''
export PKG_CONFIG_PATH="/usr/share/pkgconfig:$PKG_CONFIG_PATH"
@@ -31,29 +31,29 @@ nixosTest {
{
environment.systemPackages = [
# For go tests:
- (writeShellScriptBin "fortify-test" ''
- cd ${self.packages.${system}.fortify.src}
- ${fhs}/bin/fortify-fhs -c \
+ (writeShellScriptBin "hakurei-test" ''
+ cd ${self.packages.${system}.hakurei.src}
+ ${fhs}/bin/hakurei-fhs -c \
'go test ${if withRace then "-race" else "-count 16"} ./...' \
- &> /tmp/fortify-test.log && \
- touch /tmp/fortify-test-ok
- touch /tmp/fortify-test-done
+ &> /tmp/hakurei-test.log && \
+ touch /tmp/hakurei-test-ok
+ touch /tmp/hakurei-test-done
'')
];
# Run with Go race detector:
- environment.fortify = lib.mkIf withRace rec {
+ environment.hakurei = lib.mkIf withRace rec {
# race detector does not support static linking
package = (pkgs.callPackage ../package.nix { }).overrideAttrs (previousAttrs: {
GOFLAGS = previousAttrs.GOFLAGS ++ [ "-race" ];
});
- fsuPackage = options.environment.fortify.fsuPackage.default.override { fortify = package; };
+ hsuPackage = options.environment.hakurei.hsuPackage.default.override { hakurei = package; };
};
imports = [
./configuration.nix
- self.nixosModules.fortify
+ self.nixosModules.hakurei
self.inputs.home-manager.nixosModules.home-manager
];
};