From 145db703e58fa8438413cb67a1361020850ce10e Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <edolstra@gmail.com>
Date: Thu, 30 Aug 2018 16:03:06 +0200
Subject: [PATCH] Remove boost from the closure

This reduces the size of the closure by 45 MiB.
---
 release.nix | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/release.nix b/release.nix
index beb8b5aa9..f9ee07e34 100644
--- a/release.nix
+++ b/release.nix
@@ -67,6 +67,14 @@ let
 
         buildInputs = buildDeps;
 
+        preConfigure =
+          # Copy libboost_context so we don't get all of Boost in our closure.
+          # https://github.com/NixOS/nixpkgs/issues/45462
+          ''
+            mkdir -p $out/lib
+            cp ${boost}/lib/libboost_context* $out/lib
+          '';
+
         configureFlags = configureFlags ++
           [ "--sysconfdir=/etc" ];
 
-- 
GitLab