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

View file

@ -8,29 +8,10 @@
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" ];
perSystem = { config, self', pkgs, lib, system, ... }: rec {
perSystem = { config, self', pkgs, lib, system, ... }: {
devShells.default = import ./shell.nix { inherit pkgs; };
packages = let
vendorHash = "sha256-A5hZxo0zZ3w6qryV24PjYaKQatN2G2heyuee6QaU55M=";
in 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" ];
};
};
};
packages = import ./default.nix { inherit pkgs; };
};
};
}