Files
testrunner/flake.nix
T
MOIS3Y 53e6c50ab6
Nix Docker Push Test / build-and-push (push) Failing after 37s
Nix with Cachix Action / test-nix (push) Failing after 26s
ci: test docker regestry
2026-06-15 18:33:02 +09:00

32 lines
765 B
Nix

{
description = "A simple Nix flake for testing Gitea Actions Docker build";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
# Обычный пакет
packages.${system}.default = pkgs.hello;
# Docker образ
packages.${system}.dockerImage = pkgs.dockerTools.buildImage {
name = "test-nix-hello";
tag = "latest";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ pkgs.hello pkgs.coreutils ];
pathsToLink = [ "/bin" ];
};
config = {
Cmd = [ "/bin/hello" ];
};
};
};
}