aboutsummaryrefslogtreecommitdiffhomepage
path: root/package.nix
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-09-04 17:03:21 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-09-04 17:03:21 +0900
commit945cce2f5e487492730e06e13e920e08c55d8084 (patch)
treebbc0147dd26df2c1e950d7b2b8242223ee869e68 /package.nix
parent5c3e7cf6640721fc2cb5006c879bf570cedf1902 (diff)
nix: implement nixos module
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'package.nix')
-rw-r--r--package.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/package.nix b/package.nix
new file mode 100644
index 00000000..4445d2cb
--- /dev/null
+++ b/package.nix
@@ -0,0 +1,25 @@
+{
+ acl,
+ xorg,
+ buildGoModule,
+}:
+
+buildGoModule rec {
+ pname = "fortify";
+ version = "1.0.3";
+
+ src = ./.;
+ vendorHash = null;
+
+ ldflags = [
+ "-s"
+ "-w"
+ "-X"
+ "main.Version=v${version}"
+ ];
+
+ buildInputs = [
+ acl
+ xorg.libxcb
+ ];
+}