woodpecker-plugin-nix-attic/flake.nix
Gabor Pihaj 4ad3c86c7a
fix: create the runner script outside of the workspace (#9)
Reviewed-on: https://git.vdx.hu/voidcontext/woodpecker-plugin-nix-attic/pulls/9
Co-authored-by: Gabor Pihaj <gabor.pihaj@gmail.com>
Co-committed-by: Gabor Pihaj <gabor.pihaj@gmail.com>
2023-09-30 18:15:22 +00:00

23 lines
726 B
Nix

{
description = "Woodpecker plugin to run nix commands and cache builds using attic";
inputs.nixpkgs.url = "nixpkgs/771b86d407c567b57d791197ec464b46a5480b0b";
inputs.attic.url = "github:zhaofengli/attic";
outputs = {
self,
nixpkgs,
attic,
}: let
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [attic.overlays.default];
};
entrypoint = import ./entrypoint.nix {inherit pkgs;};
mkImage = import ./mkImage.nix {inherit pkgs entrypoint;};
in {
packages.x86_64-linux.default = mkImage null;
packages.x86_64-linux.woodpecker-plugin-nix-attic-latest = mkImage "latest";
packages.x86_64-linux.woodpecker-plugin-nix-attic-release = mkImage "0.1.1";
};
}