lol

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

+1 -1
+1 -1
nixos/modules/security/sudo-rs.nix
··· 285 285 src = pkgs.writeText "sudoers-in" cfg.configFile; 286 286 preferLocalBuild = true; 287 287 } 288 - "${cfg.package}/bin/visudo -f $src -c && cp $src $out"; 288 + "${pkgs.buildPackages."${cfg.package.pname}"}/bin/visudo -f $src -c && cp $src $out"; 289 289 mode = "0440"; 290 290 }; 291 291