Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nix/checks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
{
formatted = import ./formatted.nix { inherit inputs system; };
nixos = import ./nixos.nix { inherit inputs system; };
lib = import ./lib.nix { inherit inputs system; };
}
56 changes: 56 additions & 0 deletions nix/checks/lib.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
inputs ? import ../inputs.nix,
system ? builtins.currentSystem or "unknown-system",
lib ? import ../lib { inherit inputs; },
pkgs ? import ../nixpkgs.nix { inherit inputs system; },
utils ? import ../utils.nix { inherit inputs; },
}:
let
owner = "typhon";
repo = "typhon-ci";
typhonUrl = "https://etna.typhon-ci.org/";
secrets = pkgs.writeText "secrets" "";
all = {
github =
(lib.github.mkProject {
inherit
owner
repo
typhonUrl
secrets
;
deploy = [
{
name = "push to cachix";
value = lib.cachix.mkPush { name = "typhon"; };
}
{
name = "github pages";
value = lib.github.mkPages {
inherit owner repo;
job = "main";
customDomain = "typhon-ci.org";
};
}
];
}).actions;
gitea =
(lib.gitea.mkProject {
inherit
owner
repo
typhonUrl
secrets
;
instance = "codeberg.org";
}).actions;
dummy = (lib.dummy.mkProject { url = "github:typhon-ci/typhon"; }).actions;
git = lib.git.mkJobsets { url = "https://github.com/typhon-ci/typhon"; };
};
in
pkgs.stdenv.mkDerivation {
name = "check-typhon-lib";
buildInputs = utils.lib.mapAttrsToList (_: x: x.${system}) all;
phases = [ "installPhase" ];
installPhase = "touch $out";
}
1 change: 1 addition & 0 deletions nix/jobs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ in
doc = import ./packages/doc.nix { inherit inputs system; };
formatted = import ./checks/formatted.nix { inherit inputs system; };
nixos = import ./checks/nixos.nix { inherit inputs system; };
lib = import ./checks/lib.nix { inherit inputs system; };
};
}