Debian Codegraph @

crt/s2n/nix/openssl_1_0_2.nix

raw symbols SCIP
1 { pkgs }:
2 pkgs.stdenv.mkDerivation rec {
3 pname = "openssl";
4 version = "1.0.2";
5
6 src = pkgs.fetchzip {
7 url =
8 "https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_0_2u.zip";
9 sha256 = "sha256-UzJzeL4gMzSNVig4eXe3arVvwdFYg5yEUuL9xAcXKiY=";
10 };
11
12 buildInputs = [ pkgs.gnumake pkgs.perl ];
13
14 configurePhase = let
15 default_options =
16 "shared -g3 -fPIC no-libunbound no-gmp no-jpake no-krb5 no-md2 no-rc5 no-rfc3779 no-sctp no-ssl-trace no-store no-zlib no-hw no-mdc2 no-seed no-idea enable-ec_nistp_64_gcc_128 no-camellia no-bf no-ripemd no-dsa no-ssl2 no-capieng -DSSL_FORBID_ENULL -DOPENSSL_NO_DTLS1 -DOPENSSL_NO_HEARTBEATS --prefix=$out";
17 in {
18 x86_64-linux = ''
19 ./config -d ${default_options}
20 '';
21 # The Openssl102 Configure script appears to have a bug and won't recognize
22 # aarch64 as a supported platform when passed the '-d' flag.
23 # See the PR for more detail: https://github.com/aws/s2n-tls/pull/4045
24 aarch64-linux = ''
25 ./config ${default_options}
26 '';
27 }.${pkgs.stdenv.hostPlatform.system};
28
29 buildPhase = ''
30 make depend -j $(nproc)
31 make -j $(nproc)
32 '';
33
34 installPhase = ''
35 make install_sw
36 '';
37 }