mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
betaflight-configurator: reduce size
This reduces the size of the output from 512.5M to 233.9M.
This commit is contained in:
parent
8a4f016281
commit
66f045a65f
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user