aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: ab96d5c903333c5e40d0c95a2e501c978037ee93 (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 = 2019;

  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;
    };
  };
}