From ca6e8f88a1b71088cb814522bd3a37fb6043a1f3 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 5 Dec 2024 16:35:46 -0500 Subject: [PATCH] systems: Add name to nix-systems local flakes --- crates/nix_rs/crate.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/crates/nix_rs/crate.nix b/crates/nix_rs/crate.nix index bb710a0d..ad06b6e8 100644 --- a/crates/nix_rs/crate.nix +++ b/crates/nix_rs/crate.nix @@ -21,10 +21,22 @@ in }; INSPECT_FLAKE = inputs.inspect; NIX_SYSTEMS = builtins.toJSON { - x86_64-linux = inputs.nix-systems-x86_64-linux; - aarch64-linux = inputs.nix-systems-aarch64-linux; - x86_64-darwin = inputs.nix-systems-x86_64-darwin; - aarch64-darwin = inputs.nix-systems-aarch64-darwin; + x86_64-linux = lib.cleanSourceWith { + name = "x86_64-linux"; + src = inputs.nix-systems-x86_64-linux; + }; + aarch64-linux = lib.cleanSourceWith { + name = "aarch64-linux"; + src = inputs.nix-systems-aarch64-linux; + }; + aarch64-darwin = lib.cleanSourceWith { + name = "aarch64-darwin"; + src = inputs.nix-systems-aarch64-darwin; + }; + x86_64-darwin = lib.cleanSourceWith { + name = "x86_64-darwin"; + src = inputs.nix-systems-x86_64-darwin; + }; }; }; };