From 2dbccc394a4964a2a3badd192184b6d35dd63336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 23 Mar 2023 12:31:51 +0100 Subject: Rework how I pass packages to the NixOS --- devShells/apo.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'devShells/apo.nix') diff --git a/devShells/apo.nix b/devShells/apo.nix index c1049a8..a840670 100644 --- a/devShells/apo.nix +++ b/devShells/apo.nix @@ -1,12 +1,10 @@ { - system, - nixpkgs, + pkgs, default, c, }: let - pkgs = nixpkgs.legacyPackages.${system}; - riscvPkgs = import nixpkgs.outPath { - localSystem = system; + riscvPkgs = import pkgs.path { + localSystem = pkgs.buildPlatform.system; crossSystem = { config = "riscv32-none-elf"; libc = "newlib-nano"; @@ -23,5 +21,5 @@ in riscvPkgs.buildPackages.gcc ]; inputsFrom = [default c]; - meta.platforms = nixpkgs.lib.platforms.linux; + meta.platforms = pkgs.lib.platforms.linux; } -- cgit v1.2.3