nix-eval-jobs/flake.nix

36 lines
915 B
Nix
Raw Normal View History

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 }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
drvArgs = { srcDir = self; };
in
rec {
packages.nix-eval-jobs = pkgs.callPackage ./default.nix drvArgs;
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
};
defaultPackage = self.packages.${system}.nix-eval-jobs;
devShell = pkgs.callPackage ./shell.nix drvArgs;
2021-08-25 17:50:06 +00:00
});
2020-11-29 14:33:55 +00:00
}