From 8207b0e249513feffd163d4228de685530fc665b Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Fri, 13 Oct 2023 20:39:39 +0300 Subject: 2023-10-13 --- packages/openssl_1_0_0.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 packages/openssl_1_0_0.nix (limited to 'packages/openssl_1_0_0.nix') diff --git a/packages/openssl_1_0_0.nix b/packages/openssl_1_0_0.nix new file mode 100644 index 0000000..b1572d1 --- /dev/null +++ b/packages/openssl_1_0_0.nix @@ -0,0 +1,39 @@ +{ + 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"; + sha256 = "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; + sourceProvenance = with lib.sourceTypes; [binaryBytecode]; + maintainers = with maintainers; [azahi]; + }; +}) -- cgit v1.2.3