From bbbf5574c02132b050b859af2be6db461d99bcc2 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 14 Jun 2023 22:29:01 +0300 Subject: [PATCH] buildDartApplication: add sigtool on darwin --- pkgs/build-support/dart/build-dart-application/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/dart/build-dart-application/default.nix b/pkgs/build-support/dart/build-dart-application/default.nix index 780aefa90ef9..7e9c3f842b80 100644 --- a/pkgs/build-support/dart/build-dart-application/default.nix +++ b/pkgs/build-support/dart/build-dart-application/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchDartDeps, writeText, dartHooks, makeWrapper, dart, nodejs }: +{ lib, stdenv, fetchDartDeps, writeText, dartHooks, makeWrapper, dart, nodejs, darwin }: { pubGetScript ? "dart pub get" @@ -54,6 +54,8 @@ stdenv.mkDerivation (args // { dartBuildHook dartInstallHook makeWrapper + ] ++ lib.optionals stdenv.isDarwin [ + darwin.sigtool ]; # When stripping, it seems some ELF information is lost and the dart VM cli