diff options
author | Tobias Mayer <tobim@fastmail.fm> | 2019-12-16 13:39:21 +0100 |
---|---|---|
committer | Tobias Mayer <tobim@fastmail.fm> | 2019-12-31 15:05:13 +0100 |
commit | 0a21b322346977d7413c8cd2a3d834d8f1b03c96 (patch) | |
tree | 13af7bc6714395254195241a1c2450f8e8f29d78 /pkgs/top-level/static.nix | |
parent | a244885c63adf4d0c21702cd6a370dc656b9f353 (diff) | |
download | nixlib-0a21b322346977d7413c8cd2a3d834d8f1b03c96.tar nixlib-0a21b322346977d7413c8cd2a3d834d8f1b03c96.tar.gz nixlib-0a21b322346977d7413c8cd2a3d834d8f1b03c96.tar.bz2 nixlib-0a21b322346977d7413c8cd2a3d834d8f1b03c96.tar.lz nixlib-0a21b322346977d7413c8cd2a3d834d8f1b03c96.tar.xz nixlib-0a21b322346977d7413c8cd2a3d834d8f1b03c96.tar.zst nixlib-0a21b322346977d7413c8cd2a3d834d8f1b03c96.zip |
thrift: build with CMake; add pkgsStatic support
Diffstat (limited to 'pkgs/top-level/static.nix')
-rw-r--r-- | pkgs/top-level/static.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/top-level/static.nix b/pkgs/top-level/static.nix index c75e5127534f..81c977b79814 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) @@ -170,6 +170,10 @@ in { # --disable-shared flag stdenv = super.stdenv; }; + thrift = super.thrift.override { + static = true; + twisted = null; + }; double-conversion = super.double-conversion.override { static = true; }; @@ -227,7 +231,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; @@ -263,6 +267,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; }; } |