~ehmry/sigil

e22c2cb09c21ac6f328a7f3f223364d8752c6ff5 — Emery Hemingway 4 years ago b5c4e2c aarch64
WiP! hardening disable
1 files changed, 12 insertions(+), 3 deletions(-)

M packages/genodelabs/default.nix
M packages/genodelabs/default.nix => packages/genodelabs/default.nix +12 -3
@@ 122,7 122,7 @@ let
  ports =
    lib.mapAttrs preparePort (import ./ports.nix { inherit buildPackages; });

  toolchain' = buildPackages.gcc8Stdenv.mkDerivation rec {
  toolchain' = buildPackages.stdenv.mkDerivation rec {
    pname = "toolchain";
    inherit (genodeSources) src version;



@@ 154,11 154,14 @@ let
      export CONTRIB_DIR=$GENODE_DIR/contrib
      export BUILD_DIR=$GENODE_DIR/build
      echo true > tool/ports/prepare_port
      patchShebangs tool
      mkdir $CONTRIB_DIR; ${linkPorts}
      patchShebangs tool $CONTRIB_DIR
      runHook postConfigure
    '';

    enableParallelBuilding = false;
    hardeningDisable = [ "format" ];

    makefile = "tool/tool_chain";
    buildFlags = let
      arch = with platform;


@@ 170,7 173,13 @@ let
          "aarch64"
        else
          throw "unknown toolchain for platform ${platform.system}";
    in [ "INSTALL_LOCATION=$out" "VERBOSE=" arch ];
    in [
      "INSTALL_LOCATION=$out"
      "MAKE_JOBS=$${NIX_BUILD_CORES}"
      "SUDO="
      "VERBOSE="
      arch
    ];

    dontInstall = true;
  };