nixpkgs/pkgs/development/libraries/libev/default.nix
Ryan Mulligan 55adc491f0
Merge pull request #77180 from anmonteiro/anmonteiro/libev-static
libev: Add statically linked `libev` to `pkgsStatic`
2020-01-09 21:28:29 -08:00

21 lines
589 B
Nix

{ stdenv, fetchurl, static ? false }:
stdenv.mkDerivation rec {
pname = "libev";
version="4.31";
src = fetchurl {
url = "http://dist.schmorp.de/libev/Attic/${pname}-${version}.tar.gz";
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 ];
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.bsd2; # or GPL2+
};
}