nix-eval-jobs/flake.nix
adisbladis 7550bb8cc1
Move hydra.nix to default.nix
So it's easier to use as a classic (non-flake) Nix expression.
2021-09-24 22:02:34 -05:00

47 lines
1.1 KiB
Nix

{
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};
in
rec {
packages.nix-eval-jobs = pkgs.callPackage ./default.nix {
srcDir = self;
};
checks = {
editorconfig = pkgs.runCommand "editorconfig-checks" {
nativeBuildInputs = [
pkgs.editorconfig-checker
];
} ''
editorconfig-checker ${self}
touch $out
'';
build = packages.nix-eval-jobs;
};
defaultPackage = self.packages.${system}.nix-eval-jobs;
devShell = defaultPackage.overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs ++ [
pkgs.editorconfig-checker
(pkgs.python3.withPackages(ps: [
ps.pytest
]))
];
});
});
}