diff --git a/package/default.nix b/package/default.nix index 74cef06a..8575987b 100644 --- a/package/default.nix +++ b/package/default.nix @@ -131,8 +131,14 @@ steam # Gaming platform. vkd3d # Directx to Vulkan. wine64 # Run Windows software on Linux. + (steam.override { + extraLibraries = _: with pkgs; [ + (callPackage ./openssl100 {}) + curlWithGnuTls + ]; + }).run - (import ./steamrun args).pkg # Steam env to run native games. + # (import ./steamrun args).pkg # Steam env to run native games. ]; creative = with pkgs; [ diff --git a/package/openssl100/default.nix b/package/openssl100/default.nix new file mode 100644 index 00000000..926c2887 --- /dev/null +++ b/package/openssl100/default.nix @@ -0,0 +1,34 @@ +# SRC: https://git.azahi.cc/nixfiles/tree/packages/openssl_1_0_0.nix +{ + autoPatchelfHook, + fetchurl, + lib, + stdenvNoCC, +}: stdenvNoCC.mkDerivation (finalAttrs: { + pname = "openssl"; + version = "1.0.0"; + + sourceRoot = "x86_64"; + + dontBuild = true; + dontConfigure = true; + dontPatch = true; + + src = fetchurl { + url = "https://downloads.dotslashplay.it/resources/openssl/openssl_${finalAttrs.version}.tar.xz"; + hash = "sha256-B8/FdkheAwrAtscn6dvUuen1slfRglM/kJb2xGm7uvA="; + }; + + nativeBuildInputs = [ + autoPatchelfHook + ]; + + 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 + ''; +}) diff --git a/package/steamrun/default.nix b/package/steamrun/default.nix index 57350413..07347e0f 100644 --- a/package/steamrun/default.nix +++ b/package/steamrun/default.nix @@ -1,11 +1,12 @@ { + __findFile, inputs, pkgs, ... }: { pkg = pkgs.callPackage "${inputs.nixpkgs}/pkgs/by-name/st/steam/package.nix" { - extraLibraries = pkgs: with pkgs; [ - openssl_1_1 + extraLibraries = pkgs: [ + (pkgs.callPackage {}) ]; }; }