with import { }; let openssl-pre = openssl_1_1_0.overrideAttrs (old: rec { name = "openssl-${version}"; version = "1.1.1-pre6"; src = fetchFromGitHub { owner = "openssl"; repo = "openssl"; rev = "OpenSSL_1_1_1-pre6"; sha256 = "09pnc0bibclgwi66cc0r4nq1cvgpp1vh7sdmgnlf2xa44ixzfddq"; }; patches = [ ./openssl-tls-28.patch ]; # dontStrip = true; # separateDebugInfo = false; # configureFlags = old.configureFlags ++ ["--debug"]; # hardeningDisable = [ "fortify" ]; # setSourceRoot = '' # mkdir -p $out # for i in *; # do # if [ -d "$i" ]; then # case $dirsBefore in # *\ $i\ *) # ;; # *) # if [ -n "$sourceRoot" ]; then # echo "unpacker produced multiple directories"; # exit 1; # fi; # sourceRoot="$i" # ;; # esac; # fi; # done; # cp -rpT $sourceRoot $out/src # sourceRoot=$out/src # ''; # postInstall = '' # ${old.postInstall} # make distclean # ''; # postFixup = null; }); in stdenv.mkDerivation { name = "quicr"; buildInputs = with pkgs; [ rustChannels.stable.rust pkgconfig openssl-pre ]; shellHook = '' export CARGO_INCREMENTAL=1 export RUST_BACKTRACE=1 ''; }