From 40d68e6862f9a7614ec11f7d5b9c9f4ea12eefc2 Mon Sep 17 00:00:00 2001 From: bluepython508 Date: Thu, 19 Feb 2026 10:18:50 +0000 Subject: [PATCH] Fix eval warning: stdenv.hostPlatform.system --- flake.nix | 2 +- shell.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 44f34c5..afe5d35 100644 --- a/flake.nix +++ b/flake.nix @@ -26,7 +26,7 @@ nixosModules = { default = { lib, pkgs, config, ... }: let - sso-bsn = self.packages.${pkgs.system}.default; + sso-bsn = self.packages.${pkgs.stdenv.hostPlatform.system}.default; gen-secret = pkgs.writeShellScript "gen-secret" '' (umask 077; [ -f $1/$2 ] || ${pkgs.coreutils}/bin/head -c 128 /dev/urandom | ${pkgs.coreutils}/bin/base64 -w0 > $1/$2) ''; diff --git a/shell.nix b/shell.nix index d130820..9e87c73 100644 --- a/shell.nix +++ b/shell.nix @@ -10,8 +10,8 @@ mkShell { packages = [elixir elixir-ls sqlite-interactive] - ++ lib.lists.optional (pkgs.system == "x86_64-linux") inotify-tools - ++ lib.lists.optionals (pkgs.system == "aarch64-darwin") (with pkgs.darwin.apple_sdk.frameworks; [ + ++ lib.lists.optional (pkgs.stdenv.hostPlatform.system == "x86_64-linux") inotify-tools + ++ lib.lists.optionals (pkgs.stdenv.hostPlatform.system == "aarch64-darwin") (with pkgs.darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices ]);