From 2a7b36213c1b8bc9e03466bd7b99fa96abfecd8f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 26 Sep 2022 17:50:41 -0700 Subject: feat(naersk): use naersk to build packages with rust naersk makes it simple to build rust project in nix. For this to work, `mkSystem` and `mkHomeManagerConfiguration` needs to pass naersk to my overlays. I dropped the support to run the tools with `nix run .#tools...`: I don't use this in practice and it's not making things simpler. I dropped `nix-linter` from the check, it's reporting many errors without helping me to fix them. --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 7e8280e..2bfcf2e 100644 --- a/flake.nix +++ b/flake.nix @@ -9,6 +9,8 @@ emacs-overlay.url = "github:nix-community/emacs-overlay"; + naersk.url = "github:nix-community/naersk"; + agenix = { url = "github:ryantm/agenix"; inputs.nixpkgs.follows = "nixpkgs"; @@ -62,7 +64,6 @@ pre-commit-check = inputs.pre-commit-hooks.lib."${system}".run { src = ./.; hooks = { - nix-linter.enable = true; nixpkgs-fmt.enable = true; terraform-format.enable = true; trailing-whitespace = { @@ -133,7 +134,6 @@ in { inherit (inputs.futils.lib) filterPackages flattenTree; - tools = import ./tools { inherit pkgs; }; ops = import ./ops { inherit pkgs; }; users.fcuny = import ./users/fcuny { inherit pkgs; }; }); -- cgit v1.2.3