nix-eval-jobs/flake.nix
adisbladis 9030f0f8c5
Move devShell from flake.nix to separate shell.nix
Again, to facilitate non-flake development.
2021-09-24 22:12:56 -05:00

36 lines
915 B
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};
drvArgs = { srcDir = self; };
in
rec {
packages.nix-eval-jobs = pkgs.callPackage ./default.nix drvArgs;
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 = pkgs.callPackage ./shell.nix drvArgs;
});
}