feat: web-arm change to docker and install scana11y
This commit is contained in:
29
hosts/web-arm/pkgs/sa-core.nix
Normal file
29
hosts/web-arm/pkgs/sa-core.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ lib, buildGoModule, openssh }:
|
||||
let
|
||||
saRepoSrc = builtins.fetchGit {
|
||||
url = "ssh://gitea@git.cloonar.com/ScanA11y/sa-core.git";
|
||||
rev = "daf955c2dffb5d27593746274c33e6e3043c8227";
|
||||
};
|
||||
in
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "sa-core";
|
||||
version = "0.1.0";
|
||||
|
||||
src = saRepoSrc;
|
||||
|
||||
vendorHash = "sha256-VAFs6RC8TJSap2ezYJOpfG+zFKBzLsAmaA+qBGmbBAI=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
# Optional tuning
|
||||
CGO_ENABLED = 0;
|
||||
ldflags = [ "-s" "-w" ];
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "ScanA11y core service";
|
||||
license = licenses.mit; # adjust
|
||||
mainProgram = "sa-core";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user