Commit fd8e0695 authored by nicoo's avatar nicoo Committed by Yt
Browse files

sudo-rs: Patch to work with NixOS' suid wrappers

parent 10b6e8ba
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
{ lib
, bash
, fetchFromGitHub
, fetchpatch
, installShellFiles
, pam
, pandoc
@@ -23,6 +24,15 @@ rustPlatform.buildRustPackage rec {

  buildInputs = [ pam ];

  patches = [
    (fetchpatch {
      # @R-VdP's patch to work with NixOS' suid wrappers
      name = "Skip self_check when executed as root.patch";
      url = "https://github.com/R-VdP/sudo-rs/commit/a44541dcb36b94f938daaed66b3ff06cfc1c2b40.patch";
      hash = "sha256-PdmOqp/NDjFy8ve4jEOi58e0N9xUnaVKioQwdC5Jf1U=";
    })
  ];

  # Don't attempt to generate the docs in a (pan)Docker container
  postPatch = ''
    substituteInPlace util/generate-docs.sh \