diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix index 3f3d899885fc..7392419ca42b 100644 --- a/pkgs/os-specific/linux/util-linux/default.nix +++ b/pkgs/os-specific/linux/util-linux/default.nix @@ -14,4 +14,7 @@ stdenv.mkDerivation { makeFlagsArray=(usrbinexecdir=$out/bin usrsbinexecdir=$out/sbin datadir=$out/share exampledir=$out/share/getopt) installFlagsArray=(\"\${makeFlagsArray[@]}\") "; + + # Hack to get static builds to work. + NIX_CFLAGS_COMPILE = "-DHAVE___PROGNAME=1"; }