nix: implement nixos module

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-09-04 17:03:21 +09:00
parent 5c3e7cf664
commit 945cce2f5e
4 changed files with 271 additions and 41 deletions

25
package.nix Normal file
View File

@@ -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
];
}