From ffe16251e564c388389e0f527a37e78186ffb8c7 Mon Sep 17 00:00:00 2001 From: winston Date: Mon, 4 Sep 2023 03:54:32 +0200 Subject: [PATCH] fix(nix): use callPackage --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index baeb97ba..333442e0 100644 --- a/flake.nix +++ b/flake.nix @@ -1,14 +1,14 @@ { inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - outputs = {nixpkgs, ...} @ inputs: let + outputs = {nixpkgs, ...}: let systems = ["aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux"]; forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); in { packages = forAllSystems (system: let pkgs = nixpkgs.legacyPackages.${system}; in rec { - catppuccin-vsc = import ./. {inherit pkgs;}; + catppuccin-vsc = pkgs.callPackage ./. {}; default = catppuccin-vsc; }); };