diff options
author | hacker1024 <hacker1024@users.sourceforge.net> | 2023-04-16 15:56:14 +1000 |
---|---|---|
committer | hacker1024 <hacker1024@users.sourceforge.net> | 2023-04-16 16:47:08 +1000 |
commit | eefb67036f600783ef1284a6b1f635cc9ec6208b (patch) | |
tree | 2a4bafbc0bc807f26c9910c6c22b1147eb5a63a7 /pkgs/build-support | |
parent | 5a5435dea652265c52cf12be864d798d8682e29a (diff) | |
download | nixpkgs-eefb67036f600783ef1284a6b1f635cc9ec6208b.tar nixpkgs-eefb67036f600783ef1284a6b1f635cc9ec6208b.tar.gz nixpkgs-eefb67036f600783ef1284a6b1f635cc9ec6208b.tar.bz2 nixpkgs-eefb67036f600783ef1284a6b1f635cc9ec6208b.tar.lz nixpkgs-eefb67036f600783ef1284a6b1f635cc9ec6208b.tar.xz nixpkgs-eefb67036f600783ef1284a6b1f635cc9ec6208b.tar.zst nixpkgs-eefb67036f600783ef1284a6b1f635cc9ec6208b.zip |
flutter.buildFlutterApplication: Move debugging symbols into another output
This reduces the size of the executable. It works well with Nix - if the user includes the version in their bug report, the exact debugging symbols required can easily be found.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/flutter/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/flutter/default.nix b/pkgs/build-support/flutter/default.nix index 6b859acba9b..229d73366d4 100644 --- a/pkgs/build-support/flutter/default.nix +++ b/pkgs/build-support/flutter/default.nix @@ -30,6 +30,8 @@ let }; self = (self: llvmPackages_13.stdenv.mkDerivation (args // { + outputs = [ "out" "debug" ]; + nativeBuildInputs = [ deps flutter @@ -50,7 +52,7 @@ let mkdir -p build/flutter_assets/fonts flutter packages get --offline -v - flutter build linux -v --release ${builtins.concatStringsSep " " (map (flag: "\"${flag}\"") flutterBuildFlags)} + flutter build linux -v --release --split-debug-info="$debug" ${builtins.concatStringsSep " " (map (flag: "\"${flag}\"") flutterBuildFlags)} runHook postBuild ''; |