Unverified Commit f31c874e authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

gnused: move env variable(s) into env for structuredAttrs (#488872)

parents b355360a e37fde87
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -27,7 +27,9 @@ stdenv.mkDerivation rec {
  preConfigure = "patchShebangs ./build-aux/help2man";

  # Prevents attempts of running 'help2man' on cross-built binaries.
  PERL = if stdenv.hostPlatform == stdenv.buildPlatform then null else "missing";
  env = lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform) {
    PERL = "missing";
  };

  meta = {
    homepage = "https://www.gnu.org/software/sed/";