diff options
author | Ryan Mulligan <ryan@ryantm.com> | 2020-01-09 21:28:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 21:28:29 -0800 |
commit | 55adc491f09f191b60dffaf73efd29c0a095769e (patch) | |
tree | 629c7312d6ac53cf6f876afb2c526cfe6916b0a5 | |
parent | 91da4b3c5db89fd80bfab9da0619ef8cdea6960b (diff) | |
parent | 66f12cac0913f54050ab79efb5c6d34f5cabb64e (diff) | |
download | nixlib-55adc491f09f191b60dffaf73efd29c0a095769e.tar nixlib-55adc491f09f191b60dffaf73efd29c0a095769e.tar.gz nixlib-55adc491f09f191b60dffaf73efd29c0a095769e.tar.bz2 nixlib-55adc491f09f191b60dffaf73efd29c0a095769e.tar.lz nixlib-55adc491f09f191b60dffaf73efd29c0a095769e.tar.xz nixlib-55adc491f09f191b60dffaf73efd29c0a095769e.tar.zst nixlib-55adc491f09f191b60dffaf73efd29c0a095769e.zip |
Merge pull request #77180 from anmonteiro/anmonteiro/libev-static
libev: Add statically linked `libev` to `pkgsStatic`
-rw-r--r-- | pkgs/development/libraries/libev/default.nix | 4 | ||||
-rw-r--r-- | pkgs/top-level/static.nix | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libev/default.nix b/pkgs/development/libraries/libev/default.nix index 42d3b9435697..371c0b1d9809 100644 --- a/pkgs/development/libraries/libev/default.nix +++ b/pkgs/development/libraries/libev/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, static ? false }: stdenv.mkDerivation rec { pname = "libev"; @@ -9,6 +9,8 @@ stdenv.mkDerivation rec { sha256 = "0nkfqv69wfyy2bpga4d53iqydycpik8jp8x6q70353hia8mmv1gd"; }; + configureFlags = stdenv.lib.optional (static) "LDFLAGS=-static"; + meta = { description = "A high-performance event loop/event model with lots of features"; maintainers = [ stdenv.lib.maintainers.raskin ]; diff --git a/pkgs/top-level/static.nix b/pkgs/top-level/static.nix index 40673426136a..09ea593857d4 100644 --- a/pkgs/top-level/static.nix +++ b/pkgs/top-level/static.nix @@ -280,4 +280,6 @@ in { ) super.ocaml-ng; python27 = super.python27.override { static = true; }; + + libev = super.libev.override { static = true; }; } |