autodocodec/ci.nix

20 lines
584 B
Nix
Raw Normal View History

2021-10-20 18:59:50 +03:00
let
sources = import ./nix/sources.nix;
versions = { };
2021-10-20 18:59:50 +03:00
mkReleaseForVersion = version: rev:
let
pkgsf = builtins.fetchGit {
url = "https://github.com/NixOS/nixpkgs";
inherit rev;
};
p = import ./nix/pkgs.nix { inherit sources; inherit pkgsf; };
in
2021-10-24 20:21:59 +03:00
p.autodocodecRelease.overrideAttrs (old: { name = "autodocodec-release-${version}"; });
2021-10-20 18:59:50 +03:00
in
{
2021-10-24 20:21:59 +03:00
release = (import ./nix/pkgs.nix { inherit sources; }).autodocodecRelease;
2021-10-20 18:59:50 +03:00
pre-commit-check = (import ./nix/pre-commit.nix { }).run;
} // builtins.mapAttrs mkReleaseForVersion versions