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