14 , pythonSupport ? false
19 stdenv.mkDerivation rec {
23 src = fetchFromGitHub {
26 rev = "libnl${lib.replaceStrings ["."] ["_"] version}";
27 hash = "sha256-GuYV2bUOhLedB/o9Rz6Py/G5HBK2iNefwrlkZJXgbnI=";
30 outputs = [ "bin" "dev" "out" "man" ] ++ lib.optional pythonSupport "py";
32 enableParallelBuilding = true;
45 ] ++ lib.optional pythonSupport swig;
47 postBuild = lib.optionalString (pythonSupport) ''
49 ${python.pythonOnBuildForHost.interpreter} setup.py install --prefix=../pythonlib
53 postFixup = lib.optionalString pythonSupport ''
58 inherit pythonSupport;
62 homepage = "http://www.infradead.org/~tgr/libnl/";
63 description = "Linux Netlink interface library suite";
64 license = licenses.lgpl21;
65 maintainers = with maintainers; [ fpletz ];
66 platforms = platforms.linux;