sudo: fix cross-compilation linking error (#354576)

This commit is contained in:
Ryan Hendrickson 2024-11-09 00:52:05 -05:00 committed by GitHub
commit 62494509c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
{ lib
, stdenv
, fetchpatch
, fetchurl
, buildPackages
, coreutils
@ -30,6 +31,14 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace src/Makefile.in --replace 04755 0755
'';
patches = [
# Fix for https://github.com/NixOS/nixpkgs/issues/354544
(fetchpatch {
url = "https://www.sudo.ws/repos/sudo/raw-rev/71e3f5a288e1ac21151b1b9577f0fe3745671cf7";
hash = "sha256-L4AF1ee+qW9QKLrUzL5+hC5EznNC9k7sNeVGNBAJ6S4=";
})
];
configureFlags = [
"--with-env-editor"
"--with-editor=/run/current-system/sw/bin/nano"