Debian Codegraph @

crt/s2n/nix/openssl_3_0.nix

raw symbols SCIP
1 { pkgs }:
2 pkgs.stdenv.mkDerivation rec {
3 pname = "openssl";
4 version = "3.0.7";
5
6 src = pkgs.fetchzip {
7 url =
8 "https://github.com/openssl/openssl/archive/refs/tags/openssl-3.0.7.zip";
9 sha256 = "sha256-8eECfrnmbUr4ETGhi98LgXUX8T5914JBKxkMr4xtbRg=";
10 };
11
12 buildInputs = [ pkgs.gnumake pkgs.perl ];
13
14 patchPhase = ''
15 substitute ./Configure ./Configure --replace /usr/bin/env ${pkgs.coreutils}/bin/env
16 '';
17
18 configurePhase = ''
19 ./Configure shared -g3 -fPIC \
20 no-md2 no-rc5 no-rfc3779 no-sctp no-ssl-trace no-zlib \
21 no-hw no-mdc2 no-seed no-idea enable-ec_nistp_64_gcc_128 no-camellia\
22 no-bf no-ripemd no-dsa no-ssl2 no-ssl3 no-capieng no-dtls \
23 -DSSL_FORBID_ENULL -DOPENSSL_NO_DTLS1 -DOPENSSL_NO_HEARTBEATS \
24 --prefix=$out
25 '';
26
27 buildPhase = ''
28 make -j $(nproc)
29 '';
30
31 installPhase = ''
32 make install
33 '';
34 }