nix: add checks output; add 'eh' package as an alias
This commit is contained in:
parent
820b73e0d8
commit
f4a0befabe
1 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
description = "Rust Project Template";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
|
@ -8,11 +7,11 @@
|
|||
}: let
|
||||
systems = ["x86_64-linux" "aarch64-linux"];
|
||||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||
|
||||
pkgsForEach = nixpkgs.legacyPackages;
|
||||
in {
|
||||
packages = forEachSystem (system: {
|
||||
default = pkgsForEach.${system}.callPackage ./nix/package.nix {};
|
||||
eh = pkgsForEach.${system}.callPackage ./nix/package.nix {};
|
||||
default = self.packages.${system}.eh;
|
||||
});
|
||||
|
||||
devShells = forEachSystem (system: {
|
||||
|
@ -20,5 +19,6 @@
|
|||
});
|
||||
|
||||
hydraJobs = self.packages;
|
||||
checks = self.packages // self.devShells;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue