From 2200f315daff989a974ed4fac445f90a06d55e81 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Tue, 29 Jun 2021 21:48:07 -0500 Subject: [PATCH] Disable -pie on static nix This should resolve the failing build. See https://github.com/NixOS/nixpkgs/pull/128674 for a better fix. --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 7d41947a7..5430d3904 100644 --- a/flake.nix +++ b/flake.nix @@ -549,6 +549,8 @@ stripAllList = ["bin"]; strictDeps = true; + + hardeningDisable = [ "pie" ]; }; } // builtins.listToAttrs (map (crossSystem: { name = "nix-${crossSystem}";