hydra/flake.nix

37 lines
854 B
Nix
Raw Normal View History

2019-05-08 11:28:02 +00:00
{
description = "A Nix-based continuous build system";
2019-08-30 15:23:05 +00:00
epoch = 201909;
2019-05-08 11:28:02 +00:00
2019-08-30 15:23:05 +00:00
inputs.nix.uri = "nix/80c36d4562af71a90c67b3adb886a1003834890e";
2019-05-08 11:28:02 +00:00
2019-08-30 15:23:05 +00:00
outputs = { self, nixpkgs, nix }@inputs:
2019-08-09 11:10:50 +00:00
let
2019-08-30 15:23:05 +00:00
nix = inputs.nix.hydraJobs.build.x86_64-linux // {
perl-bindings = inputs.nix.hydraJobs.perlBindings.x86_64-linux;
2019-05-22 12:44:10 +00:00
};
2019-08-09 11:10:50 +00:00
in rec {
2019-05-08 11:28:02 +00:00
2019-08-09 11:10:50 +00:00
hydraJobs = import ./release.nix {
2019-08-30 15:23:05 +00:00
hydraSrc = self;
nixpkgs = nixpkgs;
2019-08-09 11:10:50 +00:00
inherit nix;
};
2019-06-03 10:29:42 +00:00
2019-08-09 11:10:50 +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
2019-08-09 11:10:50 +00:00
packages.hydra = hydraJobs.build.x86_64-linux;
2019-08-09 11:10:50 +00:00
defaultPackage = packages.hydra;
2019-08-09 11:10:50 +00:00
devShell = (import ./release.nix {
2019-08-30 15:23:05 +00:00
hydraSrc = self;
nixpkgs = nixpkgs;
2019-08-09 11:10:50 +00:00
shell = true;
inherit nix;
}).build.x86_64-linux;
};
2019-05-08 11:28:02 +00:00
}