about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-10-19 15:47:25 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-10-19 15:47:25 +0200
commitec2d21b4bf5c3f13d6c2093a2ec8106a5bd8f8e5 (patch)
tree8660b25e2f73ce00a3a5bdf9edc8a69d9a8c7ca1 /pkgs
parent69351af3786a7a3b4811af5557ba6a8c56a5baf0 (diff)
pkgs/santander: Trim down closure size
Since the version bump of wineStaging, stuff like mono and gecko are
included when creating a new wineprefix. We can avoid this by overriding
DLLs using "mscoree,mshtml=".

In addition to that, we now use wineMinimal instead of the wineStaging
attribute from nixpkgs so that we really have as few options compiled in
as possible, especially because we really don't need them for the
plugin.

This trims down the closure size by a few hundred megabytes.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/santander/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/santander/default.nix b/pkgs/santander/default.nix
index 567959d0..7cfd7706 100644
--- a/pkgs/santander/default.nix
+++ b/pkgs/santander/default.nix
@@ -1,6 +1,6 @@
 { stdenv, pkgsi686Linux, fetchurl, fetchgit, fetchFromBitbucket
 , runCommand, writeScript, writeScriptBin, writeText
-, xvfb_run, xdotool, coreutils, wineStaging, pipelight, dwb
+, xvfb_run, xdotool, coreutils, wineMinimal, pipelight, dwb
 }:
 
 let
@@ -16,8 +16,9 @@ let
 
   patchedWine = let
     libpcsclite = "${pkgsi686Linux.pcsclite}/lib/libpcsclite.so";
-  in (wineStaging.override {
+  in (wineMinimal.override {
     wineBuild = "wine32";
+    wineRelease = "staging";
   }).overrideDerivation (drv: {
     scard4wine = fetchgit {
       url = "git://git.code.sf.net/p/scard4wine/code";
@@ -57,6 +58,7 @@ let
     installPath = stdenv.lib.concatStringsSep "/" (installPath ++ [ dllName ]);
   } ''
     export WINEPREFIX="$out"
+    export WINEDLLOVERRIDES="mscoree,mshtml="
     mkdir -p "$out"
     ${patchedWine}/bin/wine wineboot.exe
     ${xvfb_run}/bin/xvfb-run "${writeScript "install-santander-wine" ''