Fix eval warning: stdenv.hostPlatform.system
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
default = { lib, pkgs, config, ... }: let
|
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" ''
|
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)
|
(umask 077; [ -f $1/$2 ] || ${pkgs.coreutils}/bin/head -c 128 /dev/urandom | ${pkgs.coreutils}/bin/base64 -w0 > $1/$2)
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
mkShell {
|
mkShell {
|
||||||
packages =
|
packages =
|
||||||
[elixir elixir-ls sqlite-interactive]
|
[elixir elixir-ls sqlite-interactive]
|
||||||
++ lib.lists.optional (pkgs.system == "x86_64-linux") inotify-tools
|
++ lib.lists.optional (pkgs.stdenv.hostPlatform.system == "x86_64-linux") inotify-tools
|
||||||
++ lib.lists.optionals (pkgs.system == "aarch64-darwin") (with pkgs.darwin.apple_sdk.frameworks; [
|
++ lib.lists.optionals (pkgs.stdenv.hostPlatform.system == "aarch64-darwin") (with pkgs.darwin.apple_sdk.frameworks; [
|
||||||
CoreFoundation
|
CoreFoundation
|
||||||
CoreServices
|
CoreServices
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user