aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: 9f7d6b2eed4b87dfbecd3c13d0309085daef7f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  name = "nix";

  description = "The purely functional package manager";

  edition = 201909;

  outputs = { self, nixpkgs }: rec {

    hydraJobs = import ./release.nix {
      nix = self;
      nixpkgs = nixpkgs;
    };

    checks = {
      binaryTarball = hydraJobs.binaryTarball.x86_64-linux;
      perlBindings = hydraJobs.perlBindings.x86_64-linux;
      inherit (hydraJobs.tests) remoteBuilds nix-copy-closure;
      setuid = hydraJobs.tests.setuid.x86_64-linux;
    };

    packages = {
      nix = hydraJobs.build.x86_64-linux;
      nix-perl-bindings = hydraJobs.perlBindings.x86_64-linux;
    };

    defaultPackage = packages.nix;

    devShell = import ./shell.nix {
      inherit nixpkgs;
    };
  };
}