mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
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
This commit is contained in:
parent
04e64fa716
commit
8e9b72be82
@ -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";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user