Fix eval warning: stdenv.hostPlatform.system

This commit is contained in:
2026-02-19 10:19:25 +00:00
parent 68e2111b4c
commit de2f1b16e4
3 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@
sha256 = {
"x86_64-linux" = "sha256-41Brz7Oxkk9T+tD6uztq8ZxbpC/gFFUJsy20xeGZtM8=";
"aarch64-darwin" = "sha256-8gFgTV1qYrC3iw5/AyeEOMAYtcEK7wTXie+Z9RDrqUI=";
}.${pkgs.system};
}.${pkgs.stdenv.hostPlatform.system};
};
hash = builtins.substring 11 32 "${./mix.lock}";
in

View File

@@ -57,14 +57,14 @@
'';
in lib.mkIf cfg.enable {
home.sessionVariables.FRAJTANO_DIR = cfg.dir;
home.packages = [self.packages.${pkgs.system}.default];
home.packages = [self.packages.${pkgs.stdenv.hostPlatform.system}.default];
systemd.user.services.frajtano = {
Unit.Description = "frajtano";
Unit.After = ["default.target"];
Service.Type = "notify";
Service.Environment = ["'FRAJTANO_DIR=${cfg.dir}'" "'FRAJTANO_CONFIG=${configFile}'"];
Service.ExecSearchPath = ["${self.packages.${pkgs.system}.default}/bin"];
Service.ExecSearchPath = ["${self.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin"];
Service.ExecStart = "frajtano start";
Install.WantedBy = ["default.target"];
};
@@ -76,7 +76,7 @@
FRAJTANO_DIR = "${cfg.dir}";
FRAJTANO_CONFIG = "${configFile}";
};
ProgramArguments = ["${self.packages.${pkgs.system}.default}/bin/frajtano" "start"];
ProgramArguments = ["${self.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin/frajtano" "start"];
RunAtLoad = true;
KeepAlive = true;
};

View File

@@ -11,8 +11,8 @@ mkShell {
inputsFrom = [ ownPkgs.default ];
packages =
[elixir elixir-ls]
++ 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
]);