From 66f045a65f89ec18af9e1f8cf5eb45cef37a0eee Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Wed, 3 May 2023 13:15:00 +0200 Subject: betaflight-configurator: reduce size This reduces the size of the output from 512.5M to 233.9M. --- .../science/robotics/betaflight-configurator/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkgs/applications/science/robotics') diff --git a/pkgs/applications/science/robotics/betaflight-configurator/default.nix b/pkgs/applications/science/robotics/betaflight-configurator/default.nix index a76327b854b0d..e8e5fbba4e499 100644 --- a/pkgs/applications/science/robotics/betaflight-configurator/default.nix +++ b/pkgs/applications/science/robotics/betaflight-configurator/default.nix @@ -19,11 +19,17 @@ stdenv.mkDerivation rec { sha256 = "sha256-9FzMyBIR2u1zXHtTWJABM6RF1+OyjYdEPlRwtig9blI="; }; + # remove large unneeded files + postUnpack = '' + find -name "lib*.so" -delete + ''; + nativeBuildInputs = [ wrapGAppsHook unzip ]; buildInputs = [ gsettings-desktop-schemas gtk3 ]; installPhase = '' + runHook preInstall mkdir -p $out/bin \ $out/opt/${pname} @@ -32,6 +38,7 @@ stdenv.mkDerivation rec { cp -r ${desktopItem}/share/applications $out/share/ makeWrapper ${nwjs}/bin/nw $out/bin/${pname} --add-flags $out/opt/${pname} + runHook postInstall ''; meta = with lib; { -- cgit 1.4.1