From 72f21aa0ff52d49ca90857cb5c872588b3923662 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Fri, 31 May 2024 15:03:19 +0200 Subject: [PATCH] Fix deprecation warning This fixes the following warning from crane: ``` trace: warning: `crane.lib.${system}` is deprecated. please use `(crane.mkLib nixpkgs.legacyPackages.${system})` instead ``` --- nix/builder.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/builder.nix b/nix/builder.nix index 03c050b..5957811 100644 --- a/nix/builder.nix +++ b/nix/builder.nix @@ -9,7 +9,7 @@ rec { inherit (pkgs) lib; - craneLib = crane.lib.${system}; + craneLib = crane.mkLib pkgs; src = craneLib.cleanCargoSource (craneLib.path ../.); # Common arguments can be set here to avoid repeating them later