vendorhash calc automation
This commit is contained in:
parent
e1909b04b2
commit
1321374a90
7 changed files with 40 additions and 52 deletions
23
flake.nix
23
flake.nix
|
@ -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; };
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue