feat: web-arm change to docker and install scana11y
This commit is contained in:
parent
58089e558e
commit
b48ec98cb3
6 changed files with 87 additions and 23 deletions
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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue