{ autoPatchelfHook, fetchurl, lib, stdenvNoCC, }: stdenvNoCC.mkDerivation (finalAttrs: { pname = "openssl"; version = "1.0.0"; src = fetchurl { url = "https://downloads.dotslashplay.it/resources/openssl/openssl_${finalAttrs.version}.tar.xz"; hash = "sha256-B8/FdkheAwrAtscn6dvUuen1slfRglM/kJb2xGm7uvA="; }; sourceRoot = "x86_64"; nativeBuildInputs = [ autoPatchelfHook ]; dontPatch = true; dontConfigure = true; dontBuild = true; installPhase = '' runHook preInstall install -Dm555 -t $out/lib libcrypto.so.1.0.0 install -Dm555 -t $out/lib libssl.so.1.0.0 runHook postInstall ''; meta = with lib; { description = "Ancient OpenSSL version that some GOG games require"; homepage = "https://downloads.dotslashplay.it/resources/openssl"; license = licenses.asl20; platforms = [ "x86_64-linux" ]; sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; maintainers = with maintainers; [ azahi ]; }; })