From ff6b516be0b595777fe967424267f248dce850e6 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 24 May 2024 15:11:03 +0200 Subject: fix(pkgs/by-name/{tr,ya}): Move away from `crane.lib.${system}` It's deprecated. --- pkgs/by-name/tr/tree-sitter-yts/flake.nix | 3 +-- pkgs/by-name/ya/yambar-cpu/flake.nix | 2 +- pkgs/by-name/ya/yambar-memory/flake.nix | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/tr/tree-sitter-yts/flake.nix b/pkgs/by-name/tr/tree-sitter-yts/flake.nix index 1b6f8ab0..ca882578 100644 --- a/pkgs/by-name/tr/tree-sitter-yts/flake.nix +++ b/pkgs/by-name/tr/tree-sitter-yts/flake.nix @@ -25,10 +25,9 @@ crane, }: (flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; - inherit (pkgs) lib; npmlock2nix' = pkgs.callPackage npmlock2nix {}; - craneLib = crane.lib.${system}; + craneLib = crane.mkLib pkgs; in { build = self.packages.${system}.tree-sitter-nix; diff --git a/pkgs/by-name/ya/yambar-cpu/flake.nix b/pkgs/by-name/ya/yambar-cpu/flake.nix index 0d63e121..6480a40d 100644 --- a/pkgs/by-name/ya/yambar-cpu/flake.nix +++ b/pkgs/by-name/ya/yambar-cpu/flake.nix @@ -16,7 +16,7 @@ ... }: flake-utils.lib.eachDefaultSystem (system: let - craneLib = crane.lib.${system}; + craneLib = crane.mkLib pkgs; craneBuild = craneLib.buildPackage { src = craneLib.cleanCargoSource ./.; diff --git a/pkgs/by-name/ya/yambar-memory/flake.nix b/pkgs/by-name/ya/yambar-memory/flake.nix index 186195cc..030667f1 100644 --- a/pkgs/by-name/ya/yambar-memory/flake.nix +++ b/pkgs/by-name/ya/yambar-memory/flake.nix @@ -16,7 +16,7 @@ ... }: flake-utils.lib.eachDefaultSystem (system: let - craneLib = crane.lib.${system}; + craneLib = crane.mkLib pkgs; craneBuild = craneLib.buildPackage { src = craneLib.cleanCargoSource ./.; -- cgit 1.4.1