Welcome to mirror list, hosted at ThFree Co, Russian Federation.

badvpn.nix - github.com/ambrop72/badvpn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a13baf025ef3fa293a0b53bf193c29ca1eeb7e56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ stdenv, cmake, pkgconfig, openssl, nspr, nss, debug ? false }:
let
    compileFlags = "-O3 ${stdenv.lib.optionalString (!debug) "-DNDEBUG"}";
in
stdenv.mkDerivation {
    name = "badvpn";
    nativeBuildInputs = [ cmake pkgconfig ];
    buildInputs = [ openssl nspr nss ];
    src = stdenv.lib.cleanSource ./.;
    preConfigure = ''
        cmakeFlagsArray=( "-DCMAKE_BUILD_TYPE=" "-DCMAKE_C_FLAGS=${compileFlags}" );
    '';
}