aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/fsu
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/fsu')
-rw-r--r--cmd/fsu/package.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/fsu/package.nix b/cmd/fsu/package.nix
new file mode 100644
index 00000000..e7a7a1eb
--- /dev/null
+++ b/cmd/fsu/package.nix
@@ -0,0 +1,19 @@
+{
+ buildGoModule,
+ fortify ? abort "fortify package required",
+}:
+
+buildGoModule {
+ pname = "${fortify.pname}-fsu";
+ inherit (fortify) version;
+
+ src = ./.;
+ inherit (fortify) vendorHash;
+ CGO_ENABLED = 0;
+
+ preBuild = ''
+ go mod init fsu >& /dev/null
+ '';
+
+ ldflags = [ "-X main.Fmain=${fortify}/libexec/fortify" ];
+}