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:
Maciej Krüger 2023-09-21 16:07:56 +02:00
parent 04e64fa716
commit 8e9b72be82
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -285,7 +285,7 @@ in
src = pkgs.writeText "sudoers-in" cfg.configFile; src = pkgs.writeText "sudoers-in" cfg.configFile;
preferLocalBuild = true; 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"; mode = "0440";
}; };