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. --- tools/default.nix | 2 ++ tools/sendsms/default.nix | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/default.nix b/tools/default.nix index fc60a7e..9f6d273 100644 --- a/tools/default.nix +++ b/tools/default.nix @@ -10,4 +10,6 @@ pkgs.lib.makeScope pkgs.newScope (pkgs: { ipconverter = pkgs.callPackage ./ipconverter { }; git-blame-stats = pkgs.callPackage ./git-blame-stats { }; + + sendsms = pkgs.callPackage ./sendsms { }; }) diff --git a/tools/sendsms/default.nix b/tools/sendsms/default.nix index 6c9b79c..17c6b5a 100644 --- a/tools/sendsms/default.nix +++ b/tools/sendsms/default.nix @@ -1,6 +1,6 @@ { pkgs, naersk, ... }: -naersk.lib."${pkgs.system}".buildPackage { +naersk.buildPackage { src = builtins.filterSource (path: type: type != "directory" || builtins.baseNameOf path != "target") @@ -11,5 +11,4 @@ naersk.lib."${pkgs.system}".buildPackage { remapPathPrefix = true; doCheck = true; - copyLibs = true; } -- cgit 1.4.1