forked from lix-project/nix-eval-jobs
Move devShell from flake.nix to separate shell.nix
Again, to facilitate non-flake development.
This commit is contained in:
parent
7550bb8cc1
commit
9030f0f8c5
17
flake.nix
17
flake.nix
|
@ -8,11 +8,10 @@
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
drvArgs = { srcDir = self; };
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
packages.nix-eval-jobs = pkgs.callPackage ./default.nix {
|
packages.nix-eval-jobs = pkgs.callPackage ./default.nix drvArgs;
|
||||||
srcDir = self;
|
|
||||||
};
|
|
||||||
|
|
||||||
checks = {
|
checks = {
|
||||||
|
|
||||||
|
@ -30,17 +29,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultPackage = self.packages.${system}.nix-eval-jobs;
|
defaultPackage = self.packages.${system}.nix-eval-jobs;
|
||||||
devShell = defaultPackage.overrideAttrs (old: {
|
devShell = pkgs.callPackage ./shell.nix drvArgs;
|
||||||
|
|
||||||
nativeBuildInputs = old.nativeBuildInputs ++ [
|
|
||||||
|
|
||||||
pkgs.editorconfig-checker
|
|
||||||
|
|
||||||
(pkgs.python3.withPackages(ps: [
|
|
||||||
ps.pytest
|
|
||||||
]))
|
|
||||||
|
|
||||||
];
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue