sudo: fix cross-compilation linking error (#354576)
This commit is contained in:
commit
62494509c9
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user