From 204417b2a4de05c3b83ca1b74bb52fa05b886520 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Mon, 16 May 2022 08:09:51 +0200 Subject: [PATCH] restool: fix x86_64-linux build --- pkgs/os-specific/linux/restool/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/os-specific/linux/restool/default.nix b/pkgs/os-specific/linux/restool/default.nix index 4f488c28323..83c7c93ffcd 100644 --- a/pkgs/os-specific/linux/restool/default.nix +++ b/pkgs/os-specific/linux/restool/default.nix @@ -18,6 +18,12 @@ stdenv.mkDerivation rec { "VERSION=${version}" ]; + postPatch = '' + # -Werror makes this derivation fragile on compiler version upgrades, patch + # it out. + sed -i /-Werror/d Makefile + ''; + preFixup = '' # wrapProgram interacts badly with the ls-main tool, which relies on the # shell's $0 argument to figure out which operation to run (busybox-style