NixLabConnectionconnecting
ProjectsProject
horizon /

dependent-nixlab-examples

publicguest

Worked examples of where dependent types help NixLab.

git clone git@nixlab.openfp.net:horizon/dependent-nixlab-examples.git
571e42096581aca5754d235d36ad79f1f629eb05nix/project.nix
local: {
  perSystem =
    {
      config,
      pkgs,
      system,
      ...
    }:
    {
      horizon.overlay.basePackages = local.inputs.horizon-dependent.legacyPackages.${system};

      # The set has no cabal-install; packaging checks do not depend on the compiler.
      horizon.checks.cabal.package = pkgs.cabal-install;

      packages.default = config.legacyPackages.dependent-nixlab-examples;
    };
}