2020-11-29 14:33:55 +00:00
|
|
|
{
|
|
|
|
description = "Hydra's builtin hydra-eval-jobs as a standalone";
|
|
|
|
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
2021-03-21 18:05:11 +00:00
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in
|
|
|
|
rec {
|
2021-09-25 03:02:34 +00:00
|
|
|
packages.nix-eval-jobs = pkgs.callPackage ./default.nix {
|
2021-03-21 18:05:11 +00:00
|
|
|
srcDir = self;
|
|
|
|
};
|
2021-08-25 17:50:06 +00:00
|
|
|
|
|
|
|
checks = {
|
|
|
|
|
|
|
|
editorconfig = pkgs.runCommand "editorconfig-checks" {
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgs.editorconfig-checker
|
|
|
|
];
|
|
|
|
} ''
|
|
|
|
editorconfig-checker ${self}
|
|
|
|
touch $out
|
|
|
|
'';
|
|
|
|
|
2021-08-25 19:06:20 +00:00
|
|
|
build = packages.nix-eval-jobs;
|
|
|
|
|
2021-08-25 17:50:06 +00:00
|
|
|
};
|
|
|
|
|
2021-08-24 18:13:04 +00:00
|
|
|
defaultPackage = self.packages.${system}.nix-eval-jobs;
|
2021-03-21 18:05:11 +00:00
|
|
|
devShell = defaultPackage.overrideAttrs (old: {
|
2021-08-25 17:50:06 +00:00
|
|
|
|
2021-03-21 18:05:11 +00:00
|
|
|
nativeBuildInputs = old.nativeBuildInputs ++ [
|
2021-08-25 17:50:06 +00:00
|
|
|
|
|
|
|
pkgs.editorconfig-checker
|
|
|
|
|
2021-08-23 17:20:16 +00:00
|
|
|
(pkgs.python3.withPackages(ps: [
|
|
|
|
ps.pytest
|
|
|
|
]))
|
2021-08-25 17:50:06 +00:00
|
|
|
|
2021-03-21 18:05:11 +00:00
|
|
|
];
|
|
|
|
});
|
|
|
|
});
|
2020-11-29 14:33:55 +00:00
|
|
|
}
|