Fix eval warning: stdenv.hostPlatform.system
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
sha256 = {
|
sha256 = {
|
||||||
"x86_64-linux" = "sha256-41Brz7Oxkk9T+tD6uztq8ZxbpC/gFFUJsy20xeGZtM8=";
|
"x86_64-linux" = "sha256-41Brz7Oxkk9T+tD6uztq8ZxbpC/gFFUJsy20xeGZtM8=";
|
||||||
"aarch64-darwin" = "sha256-8gFgTV1qYrC3iw5/AyeEOMAYtcEK7wTXie+Z9RDrqUI=";
|
"aarch64-darwin" = "sha256-8gFgTV1qYrC3iw5/AyeEOMAYtcEK7wTXie+Z9RDrqUI=";
|
||||||
}.${pkgs.system};
|
}.${pkgs.stdenv.hostPlatform.system};
|
||||||
};
|
};
|
||||||
hash = builtins.substring 11 32 "${./mix.lock}";
|
hash = builtins.substring 11 32 "${./mix.lock}";
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -57,14 +57,14 @@
|
|||||||
'';
|
'';
|
||||||
in lib.mkIf cfg.enable {
|
in lib.mkIf cfg.enable {
|
||||||
home.sessionVariables.FRAJTANO_DIR = cfg.dir;
|
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 = {
|
systemd.user.services.frajtano = {
|
||||||
Unit.Description = "frajtano";
|
Unit.Description = "frajtano";
|
||||||
Unit.After = ["default.target"];
|
Unit.After = ["default.target"];
|
||||||
Service.Type = "notify";
|
Service.Type = "notify";
|
||||||
Service.Environment = ["'FRAJTANO_DIR=${cfg.dir}'" "'FRAJTANO_CONFIG=${configFile}'"];
|
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";
|
Service.ExecStart = "frajtano start";
|
||||||
Install.WantedBy = ["default.target"];
|
Install.WantedBy = ["default.target"];
|
||||||
};
|
};
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
FRAJTANO_DIR = "${cfg.dir}";
|
FRAJTANO_DIR = "${cfg.dir}";
|
||||||
FRAJTANO_CONFIG = "${configFile}";
|
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;
|
RunAtLoad = true;
|
||||||
KeepAlive = true;
|
KeepAlive = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ mkShell {
|
|||||||
inputsFrom = [ ownPkgs.default ];
|
inputsFrom = [ ownPkgs.default ];
|
||||||
packages =
|
packages =
|
||||||
[elixir elixir-ls]
|
[elixir elixir-ls]
|
||||||
++ 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