From f4a0befabe264828fbb7c1db936d84e304017ef8 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 22 Jul 2025 22:42:44 +0300 Subject: [PATCH] nix: add checks output; add 'eh' package as an alias --- flake.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 18bd6fa..58ffdf5 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; }