diff options
author | Roberto Di Remigio <roberto.diremigio@gmail.com> | 2019-12-15 22:43:23 +0100 |
---|---|---|
committer | Roberto Di Remigio <roberto.diremigio@gmail.com> | 2019-12-19 10:12:00 +0100 |
commit | 6cc9bbe2fd441e5c994726d5c456e77a604f272b (patch) | |
tree | ad5890935381e7f913426eb727ac65707473ebd4 /pkgs/top-level/static.nix | |
parent | e0605b3174f4d786368f5cfc2086a74e66c3cc34 (diff) | |
download | nixlib-6cc9bbe2fd441e5c994726d5c456e77a604f272b.tar nixlib-6cc9bbe2fd441e5c994726d5c456e77a604f272b.tar.gz nixlib-6cc9bbe2fd441e5c994726d5c456e77a604f272b.tar.bz2 nixlib-6cc9bbe2fd441e5c994726d5c456e77a604f272b.tar.lz nixlib-6cc9bbe2fd441e5c994726d5c456e77a604f272b.tar.xz nixlib-6cc9bbe2fd441e5c994726d5c456e77a604f272b.tar.zst nixlib-6cc9bbe2fd441e5c994726d5c456e77a604f272b.zip |
mkl: extract static libraries optionally
Diffstat (limited to 'pkgs/top-level/static.nix')
-rw-r--r-- | pkgs/top-level/static.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/top-level/static.nix b/pkgs/top-level/static.nix index 687086b6ed3b..7736a265b947 100644 --- a/pkgs/top-level/static.nix +++ b/pkgs/top-level/static.nix @@ -55,7 +55,7 @@ self: super: let removeUnknownConfigureFlags = f: with self.lib; remove "--disable-shared" (remove "--enable-static" f); - + ocamlFixPackage = b: b.overrideAttrs (o: { configurePlatforms = [ ]; @@ -63,7 +63,7 @@ self: super: let buildInputs = o.buildInputs ++ o.nativeBuildInputs or [ ]; propagatedNativeBuildInputs = o.propagatedBuildInputs or [ ]; }); - + ocamlStaticAdapter = _: super: self.lib.mapAttrs (_: p: if p ? overrideAttrs then ocamlFixPackage p else p) @@ -153,6 +153,7 @@ in { static = true; }; openblas = super.openblas.override { enableStatic = true; }; + mkl = super.mkl.override { enableStatic = true; }; nix = super.nix.override { withAWS = false; }; # openssl 1.1 doesn't compile openssl = super.openssl_1_0_2.override { @@ -209,7 +210,7 @@ in { kmod = super.kmod.override { withStatic = true; }; - + curl = super.curl.override { # a very sad story: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439039 gssSupport = false; @@ -241,6 +242,6 @@ in { ocaml-ng = self.lib.mapAttrs (_: set: if set ? overrideScope' then set.overrideScope' ocamlStaticAdapter else set ) super.ocaml-ng; - + python27 = super.python27.override { static = true; }; } |