hydra/flake.nix

35 lines
772 B
Nix
Raw Normal View History

2019-05-08 11:28:02 +00:00
{
name = "hydra";
description = "A Nix-based continuous build system";
epoch = 2019;
2019-06-03 10:09:18 +00:00
inputs = [ "nixpkgs" "nix" ];
2019-05-08 11:28:02 +00:00
2019-06-03 10:09:18 +00:00
outputs = inputs: rec {
2019-05-08 11:28:02 +00:00
hydraJobs = import ./release.nix {
2019-06-03 10:09:18 +00:00
hydraSrc = inputs.self;
nixpkgs = inputs.nixpkgs;
nix = inputs.nix.outputs.hydraJobs.build.x86_64-linux // {
perl-bindings = inputs.nix.outputs.hydraJobs.perlBindings.x86_64-linux;
2019-05-22 12:44:10 +00:00
};
2019-05-08 11:28:02 +00:00
};
2019-06-03 10:29:42 +00:00
checks.build = hydraJobs.build.x86_64-linux;
checks.install = hydraJobs.tests.install.x86_64-linux;
2019-05-08 11:28:02 +00:00
packages.hydra = hydraJobs.build.x86_64-linux;
defaultPackage = packages.hydra;
devShell = (import ./release.nix {
2019-06-03 10:09:18 +00:00
hydraSrc = inputs.self;
nixpkgs = inputs.nixpkgs;
shell = true;
}).build.x86_64-linux;
2019-05-08 11:28:02 +00:00
};
}