aboutsummaryrefslogtreecommitdiffhomepage
path: root/package.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 /package.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 'package.nix')
-rw-r--r--package.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/package.nix b/package.nix
index 128b18c6..aa73ada2 100644
--- a/package.nix
+++ b/package.nix
@@ -30,13 +30,13 @@
}:
buildGoModule rec {
- pname = "fortify";
+ pname = "hakurei";
version = "0.4.1";
srcFiltered = builtins.path {
name = "${pname}-src";
path = lib.cleanSource ./.;
- filter = path: type: !(type == "regular" && (lib.hasSuffix ".nix" path || lib.hasSuffix ".py" path)) && !(type == "directory" && lib.hasSuffix "/test" path) && !(type == "directory" && lib.hasSuffix "/cmd/fsu" path);
+ filter = path: type: !(type == "regular" && (lib.hasSuffix ".nix" path || lib.hasSuffix ".py" path)) && !(type == "directory" && lib.hasSuffix "/test" path) && !(type == "directory" && lib.hasSuffix "/cmd/hsu" path);
};
vendorHash = null;
@@ -65,7 +65,7 @@ buildGoModule rec {
lib.attrsets.foldlAttrs
(
ldflags: name: value:
- ldflags ++ [ "-X git.gensokyo.uk/security/fortify/internal.${name}=${value}" ]
+ ldflags ++ [ "-X git.gensokyo.uk/security/hakurei/internal.${name}=${value}" ]
)
(
[ "-s -w" ]
@@ -76,7 +76,7 @@ buildGoModule rec {
)
{
version = "v${version}";
- fsu = "/run/wrappers/bin/fsu";
+ hsu = "/run/wrappers/bin/hsu";
};
# nix build environment does not allow acls
@@ -113,7 +113,7 @@ buildGoModule rec {
mkdir "$out/libexec"
mv "$out"/bin/* "$out/libexec/"
- makeBinaryWrapper "$out/libexec/fortify" "$out/bin/fortify" \
+ makeBinaryWrapper "$out/libexec/hakurei" "$out/bin/hakurei" \
--inherit-argv0 --prefix PATH : ${lib.makeBinPath appPackages}
makeBinaryWrapper "$out/libexec/fpkg" "$out/bin/fpkg" \