Commit 3e1a9ffb authored by Ryan Hendrickson's avatar Ryan Hendrickson
Browse files

sudo: fix cross-compilation linking error

parent 4476c3a1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{ 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"