nix/package/openssl100/default.nix

33 lines
706 B
Nix
Raw Normal View History

2024-12-17 10:57:54 +03:00
# SRC: https://git.azahi.cc/nixfiles/tree/packages/openssl_1_0_0.nix
{
autoPatchelfHook,
fetchurl,
stdenvNoCC,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "openssl";
version = "1.0.0";
2024-12-17 10:57:54 +03:00
sourceRoot = "x86_64";
2024-12-17 10:57:54 +03:00
dontBuild = true;
dontConfigure = true;
dontPatch = true;
2024-12-17 10:57:54 +03:00
src = fetchurl {
url = "https://downloads.dotslashplay.it/resources/openssl/openssl_${finalAttrs.version}.tar.xz";
hash = "sha256-B8/FdkheAwrAtscn6dvUuen1slfRglM/kJb2xGm7uvA=";
};
2024-12-17 10:57:54 +03:00
nativeBuildInputs = [ autoPatchelfHook ];
2024-12-17 10:57:54 +03:00
installPhase = ''
runHook preInstall
2024-12-17 10:57:54 +03:00
install -Dm555 -t $out/lib libcrypto.so.1.0.0
install -Dm555 -t $out/lib libssl.so.1.0.0
2024-12-17 10:57:54 +03:00
runHook postInstall
'';
2024-12-17 10:57:54 +03:00
})