Files
noq/shell.nix
T
2018-04-07 17:00:37 -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-pre4";
src = fetchFromGitHub {
owner = "openssl";
repo = "openssl";
rev = "OpenSSL_1_1_1-pre4";
sha256 = "0zvf6sdhsifqbi8kxs8w0n5mc8vh9fad2gxx9s4fbs3azpq2zr61";
};
patches = [];
# 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
'';
}