about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2023-09-21 16:07:56 +0200
committerMaciej Krüger <mkg20001@gmail.com>2023-09-22 15:14:14 +0200
commit8e9b72be8276e3ea2e0933cd260359535523e43f (patch)
treeb3732dc6f92f6412ba641c0ef3878872e05b4df1 /nixos
parent04e64fa7165a88b978165b4592f550016136244e (diff)
nixos/sudo-rs: add crossCompile 'fix'
This is just a quick fix based on pname,
as I have no idea how to use slicing in the module

We should instead use slicing to get the package for the host
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/security/sudo-rs.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/security/sudo-rs.nix b/nixos/modules/security/sudo-rs.nix
index 83bef3bbf91c4..6b8f09a8d3d0c 100644
--- a/nixos/modules/security/sudo-rs.nix
+++ b/nixos/modules/security/sudo-rs.nix
@@ -285,7 +285,7 @@ in
             src = pkgs.writeText "sudoers-in" cfg.configFile;
             preferLocalBuild = true;
           }
-          "${cfg.package}/bin/visudo -f $src -c && cp $src $out";
+          "${pkgs.buildPackages."${cfg.package.pname}"}/bin/visudo -f $src -c && cp $src $out";
         mode = "0440";
       };