aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: e7deb2de3807b783633ce11bd99f382c2711aa1d (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
34
35
{
  name = "nix";

  description = "The purely functional package manager";

  epoch = 201906;

  inputs = [ "nixpkgs" ];

  outputs = inputs: rec {

    hydraJobs = import ./release.nix {
      nix = inputs.self;
      nixpkgs = inputs.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 {
      nixpkgs = inputs.nixpkgs;
    };
  };
}