summaryrefslogtreecommitdiffstats
path: root/flake.nix
blob: 3e7263ae6b6aca5564021662aa36130c916636ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  description = "Description for the project";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

  outputs = { self, nixpkgs, ... }: {
    lib = import ./. {
      inherit (nixpkgs) lib;
    };
    checks.x86_64-linux = let
      pkgs = nixpkgs.legacyPackages.x86_64-linux;
    in {
      # Run tests: nix flake check -L
      nixos-test = pkgs.callPackage ./tests/test.nix {
        makeTest = import (pkgs.path + "/nixos/tests/make-test-python.nix");
      };
    };
  };
}