Files
noq/shell.nix
T
Benjamin Saunders 36f1724586 Update recommended OpenSSL version
Fix tests to match its NewSessionTicket behavior while we're at it
2018-07-29 16:45:41 -07:00

52 lines
1.3 KiB
Nix

with import <nixpkgs> { };
let
openssl-pre = openssl_1_1_0.overrideAttrs (old: rec {
name = "openssl-${version}";
version = "1.1.1-pre8";
src = fetchFromGitHub {
owner = "openssl";
repo = "openssl";
rev = "OpenSSL_1_1_1-pre8";
sha256 = "14s431kal2xwx4wqy0xz2wp6a7rbn9yw3bn0g1c0197qiacv7z1g";
};
# 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
'';
}