diff options
author | Nick Cao <nickcao@nichi.co> | 2023-05-16 03:23:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 03:23:18 -0600 |
commit | 1385ce47b7f85ccaafeb80e89b9bde540f526a16 (patch) | |
tree | f826999352a55b89e5831e8959edfd4fa6353193 | |
parent | 3ba822b2cb327564c97d3cd5acde1ee90d8c17d7 (diff) | |
parent | 66f045a65f89ec18af9e1f8cf5eb45cef37a0eee (diff) |
Merge pull request #232076 from nagy/betaflight
betaflight-configurator: reduce size
-rw-r--r-- | pkgs/applications/science/robotics/betaflight-configurator/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
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; { |