nix: implement nixos module
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
25
package.nix
Normal file
25
package.nix
Normal 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
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user