Merge pull request #77180 from anmonteiro/anmonteiro/libev-static

libev: Add statically linked `libev` to `pkgsStatic`
This commit is contained in:
Ryan Mulligan 2020-01-09 21:28:29 -08:00 committed by GitHub
commit 55adc491f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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 ];

View File

@ -280,4 +280,6 @@ in {
) super.ocaml-ng;
python27 = super.python27.override { static = true; };
libev = super.libev.override { static = true; };
}