This repository has been archived on 2024-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
container-images/forgejo-nix-action.nix

32 lines
908 B
Nix
Raw Normal View History

2024-04-26 21:11:47 +00:00
{ nixpkgs, flutils, ... }: flutils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
nixFromDockerHub = pkgs.dockerTools.pullImage {
imageName = "nixos/nix";
imageDigest = "sha256:b3dc72ab3216606d52357ee46f0830a0cc32f3e50e00bd490efa1a8304e9f99d";
sha256 = "sha256-FvDlbSnCmPtWTn4eG3hu8WVK1Wm3RSi2T+CdmIDLkG4=";
finalImageTag = "2.22.0";
finalImageName = "nix";
};
in
{
packages.forgejo-nix-action = pkgs.dockerTools.buildImage {
name = "forgejo-nix-action";
tag = "latest";
fromImage = nixFromDockerHub;
2024-04-26 21:11:47 +00:00
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ pkgs.coreutils pkgs.attic-client pkgs.docker-client ];
2024-04-26 21:11:47 +00:00
pathsToLink = [ "/bin" ];
};
config = {
2024-04-27 20:47:08 +00:00
Env = [
"PATH=/bin:/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin"
];
};
2024-04-26 21:11:47 +00:00
};
})