Steam-run: Add libcrypto 1.0.

This commit is contained in:
Dmitry Voronin 2024-12-17 10:57:54 +03:00
parent ca3924a420
commit 3e4de67112
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 44 additions and 3 deletions

View file

@ -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; [

View file

@ -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
'';
})

View file

@ -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 <package/openssl100> {})
];
};
}