aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-09-07 19:07:37 -0700
committerFranck Cuny <franck@fcuny.net>2022-09-07 19:12:12 -0700
commit5685d297f2376f6c3bb6d27297c8f268b2da8192 (patch)
tree28efe04fa926eab46bc39d94994126145f712f65 /flake.nix
parentfeat(tool/sendsms): a CLI to send SMS (diff)
downloadinfra-5685d297f2376f6c3bb6d27297c8f268b2da8192.tar.gz
feat(flake): use naersk to build rust projects
The flake naersk is used to build rust crates with nix. Change-Id: Ia1c95de34fe802ae6a6b623dc169ca502fa72f12
Diffstat (limited to '')
-rw-r--r--flake.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 5d2d595..d83a052 100644
--- a/flake.nix
+++ b/flake.nix
@@ -30,6 +30,8 @@
inputs.nixpkgs.follows = "nixpkgs";
};
+ naersk.url = "github:nix-community/naersk";
+
pre-commit-hooks = {
type = "github";
owner = "cachix";
@@ -55,6 +57,7 @@
eachMySystem
(system:
let
+ naersk = inputs.naersk;
pkgs = import inputs.nixpkgs { inherit system; };
home-manager = inputs.home-manager.defaultPackage."${system}";
pre-commit-golang = pkgs.callPackage
@@ -94,7 +97,7 @@
packages = pkgs // {
inherit home-manager;
- tools = import ./tools { inherit pkgs; };
+ tools = import ./tools { inherit pkgs naersk; };
ops = import ./ops { inherit pkgs; };
users.fcuny = import ./users/fcuny { inherit pkgs; };
};