feat: add oci container definitions build with nix (#18)
Some checks failed
release / release-linux (push) Failing after 1m23s
release / release-darwin (push) Has been skipped
release / release-containers (false, debian) (push) Failing after 1m45s
release / release-containers (false, ubuntu) (push) Failing after 21s
release / release-containers (true, alpine) (push) Failing after 22s
release / release-containers (false, scratch) (push) Failing after 1m51s
Some checks failed
release / release-linux (push) Failing after 1m23s
release / release-darwin (push) Has been skipped
release / release-containers (false, debian) (push) Failing after 1m45s
release / release-containers (false, ubuntu) (push) Failing after 21s
release / release-containers (true, alpine) (push) Failing after 22s
release / release-containers (false, scratch) (push) Failing after 1m51s
This commit is contained in:
17
flake.nix
17
flake.nix
@@ -80,11 +80,18 @@
|
||||
in
|
||||
{
|
||||
packages = eachSystem (system:
|
||||
let pkgs = pkgsFor system; in
|
||||
{
|
||||
default = mkSnitch pkgs;
|
||||
let
|
||||
pkgs = pkgsFor system;
|
||||
snitch = mkSnitch pkgs;
|
||||
}
|
||||
# containers only available on linux
|
||||
containers = if pkgs.stdenv.isLinux
|
||||
then import ./nix/containers.nix { inherit pkgs snitch; }
|
||||
else { };
|
||||
in
|
||||
{
|
||||
default = snitch;
|
||||
inherit snitch;
|
||||
} // containers
|
||||
);
|
||||
|
||||
devShells = eachSystem (system:
|
||||
@@ -94,7 +101,7 @@
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
packages = [ go pkgs.git pkgs.vhs ];
|
||||
packages = [ go pkgs.git pkgs.vhs pkgs.nix-prefetch-docker ];
|
||||
env.GOTOOLCHAIN = "local";
|
||||
shellHook = ''
|
||||
echo "go toolchain: $(go version)"
|
||||
|
||||
Reference in New Issue
Block a user