vendorhash calc automation

This commit is contained in:
41666 2025-03-24 23:21:33 -07:00
parent e1909b04b2
commit 1321374a90
7 changed files with 40 additions and 52 deletions

22
default.nix Normal file
View file

@ -0,0 +1,22 @@
{
pkgs ? import <nixpkgs> {},
vendorHash ? "sha256-YRteL/3725Hm+fdXO+wPYX9nFNbdAHsAwCo3xuVPrwI=",
}:
rec {
default = roleypoly;
roleypoly = pkgs.buildGoModule {
inherit vendorHash;
name = "roleypoly";
src = ./.;
};
container = pkgs.dockerTools.buildImage {
name = "roleypoly/roleypoly";
tag = "latest";
copyToRoot = [
pkgs.dockerTools.caCertificates
];
config = {
Cmd = [ "${roleypoly}/bin/roleypoly" ];
};
};
}