libwebsockets: remove generic function, format
Formatted with nixpkgs-fmt.
This commit is contained in:
parent
d819f15503
commit
bcd5ad6d83
2 changed files with 45 additions and 57 deletions
|
@ -9,20 +9,17 @@
|
|||
, withExternalPoll ? false
|
||||
}:
|
||||
|
||||
let
|
||||
generic = { version, hash, patches ? [] }: stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libwebsockets";
|
||||
inherit version;
|
||||
version = "4.3.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "warmcat";
|
||||
repo = "libwebsockets";
|
||||
rev = "v${version}";
|
||||
inherit hash;
|
||||
hash = "sha256-why8LAcc4XN0JdTJ1JoNWijKENL5mOHBsi9K4wpYr2c=";
|
||||
};
|
||||
|
||||
inherit patches;
|
||||
|
||||
buildInputs = [ openssl zlib libuv ];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
@ -32,7 +29,6 @@ let
|
|||
"-DLWS_WITH_IPV6=ON"
|
||||
"-DLWS_WITH_SOCKS5=ON"
|
||||
"-DDISABLE_WERROR=ON"
|
||||
# Required since v4.2.0
|
||||
"-DLWS_BUILD_HASH=no_hash"
|
||||
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "-DLWS_WITHOUT_TESTAPPS=ON"
|
||||
++ lib.optional withExternalPoll "-DLWS_WITH_EXTERNAL_POLL=ON";
|
||||
|
@ -58,11 +54,5 @@ let
|
|||
maintainers = with maintainers; [ mindavi ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
|
||||
in {
|
||||
libwebsockets_4_3 = generic {
|
||||
version = "4.3.2";
|
||||
hash = "sha256-why8LAcc4XN0JdTJ1JoNWijKENL5mOHBsi9K4wpYr2c=";
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -8094,9 +8094,7 @@ with pkgs;
|
|||
|
||||
librest_1_0 = callPackage ../development/libraries/librest/1.0.nix { };
|
||||
|
||||
inherit (callPackages ../development/libraries/libwebsockets { })
|
||||
libwebsockets_4_3;
|
||||
libwebsockets = libwebsockets_4_3;
|
||||
libwebsockets = callPackage ../development/libraries/libwebsockets { };
|
||||
|
||||
licensee = callPackage ../tools/package-management/licensee { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue