Skip to content

Commit a225d74

Browse files
authored
fix: replace pkgs.system with pkgs.stdenv.hostPlaform.system (#270)
Sources: - https://www.github.com/snowfallorg/lib/issues/140 - [How to fix `evaluation warning: ‘system’ has been renamed to/replaced by ‘stdenv.hostPlatform.system’`](https://discourse.nixos.org/t/how-to-fix-evaluation-warning-system-has-been-renamed-to-replaced-by-stdenv-hostplatform-system/72120)
1 parent 1b40187 commit a225d74

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
withPlugins =
7474
f: # f is a function such as (ps: with ps; [ plugin names ])
7575
plover'.overridePythonAttrs (old: {
76-
dependencies = old.dependencies ++ (f self.ploverPlugins.${pkgs.system});
76+
dependencies = old.dependencies ++ (f self.ploverPlugins.${pkgs.stdenv.hostPlatform.system});
7777
});
7878
in
7979
plover' // { inherit withPlugins; };
@@ -86,7 +86,7 @@
8686
withPlugins =
8787
f: # f is a function such as (ps: with ps; [ plugin names ])
8888
plover'.overridePythonAttrs (old: {
89-
dependencies = old.dependencies ++ (f self.ploverPlugins.${pkgs.system});
89+
dependencies = old.dependencies ++ (f self.ploverPlugins.${pkgs.stdenv.hostPlatform.system});
9090
});
9191
in
9292
plover' // { inherit withPlugins; };

hm-module.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ in
2424

2525
package = lib.mkOption {
2626
type = lib.types.package;
27-
default = self.packages.${pkgs.system}.plover;
27+
default = self.packages.${pkgs.stdenv.hostPlatform.system}.plover;
2828
example =
2929
lib.literalExpression # nix
3030
''
31-
inputs.plover-flake.${pkgs.system}.plover.withPlugins (ps: with ps; [
31+
inputs.plover-flake.${pkgs.stdenv.hostPlatform.system}.plover.withPlugins (ps: with ps; [
3232
plover-lapwing-aio
3333
plover-console-ui
3434
])

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ If you use [home-manager](https://github.com/nix-community/home-manager), there
4040
4141
programs.plover = {
4242
enable = true;
43-
package = inputs.plover-flake.packages.${pkgs.system}.plover.withPlugins (
43+
package = inputs.plover-flake.packages.${pkgs.stdenv.hostPlatform.system}.plover.withPlugins (
4444
ps: with ps; [
4545
plover-lapwing-aio
4646
]
4747
);
4848
4949
# Or, use `plover-full` if you want Plover with all the plugins installed:
50-
# package = inputs.plover-flake.packages.${pkgs.system}.plover-full;
50+
# package = inputs.plover-flake.packages.${pkgs.stdenv.hostPlatform.system}.plover-full;
5151
5252
settings = {
5353
"Machine Configuration" = {

0 commit comments

Comments
 (0)