From ec2d21b4bf5c3f13d6c2093a2ec8106a5bd8f8e5 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 19 Oct 2016 15:47:25 +0200 Subject: 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 --- pkgs/santander/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkgs') 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" '' -- cgit 1.4.1