From 12e3001dadb1f08db7ec13ba232894d3874964eb Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Mon, 9 Aug 2021 22:10:14 +0200 Subject: [PATCH] sdcc: honour dontStrip even with 'dontStrip', the sdcc binary was stipped anyway. specifying STRIP=none will convince ./configure to use 'none' as the strip tool, which 'make install' conveniently ignores. --- pkgs/development/compilers/sdcc/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/compilers/sdcc/default.nix b/pkgs/development/compilers/sdcc/default.nix index d0ebb57920b..28a461b0988 100644 --- a/pkgs/development/compilers/sdcc/default.nix +++ b/pkgs/development/compilers/sdcc/default.nix @@ -23,6 +23,12 @@ stdenv.mkDerivation rec { configureFlags = map (f: "--disable-${f}-port") excludedPorts; + preConfigure = '' + if test -n "''${dontStrip-}"; then + export STRIP=none + fi + ''; + meta = { description = "Small Device C Compiler"; longDescription = ''