diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f8d3e91a29c2..f20dfa8fcfb7 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -516,6 +516,10 @@ rec {
     inherit fetchurl stdenv ncurses;
   };
 
+  sudo = import ../tools/security/sudo {
+    inherit fetchurl stdenv coreutils;
+  };
+
   sshfsFuse = import ../tools/networking/sshfs-fuse {
     inherit fetchurl stdenv pkgconfig fuse;
     inherit (gtkLibs) glib;