liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bd430f1abdea53e4aa2787c035340884ec50f6da
parent 77c6552e18e9f1c8a57ecdbd5c73703397a4ae14
Author: Daniel Barlow <dan@telent.net>
Date:   Fri, 10 Oct 2025 23:39:20 +0100

build luaossl without using luarocks

luarocks wants to build cmake, python, curl etc mips packages and I'm
not smart enough to figure out why, but the python doesn't work

Diffstat:
Moverlay.nix | 29+++++++++++++++++++++--------
1 file changed, 21 insertions(+), 8 deletions(-)

diff --git a/overlay.nix b/overlay.nix @@ -247,14 +247,27 @@ extraPkgs lua = crossOnly prev.lua5_3 (_: luaHost); - luaossl' = luaHost.pkgs.luaossl.overrideAttrs (o: { - patches = [ - (fetchpatch { - url = "https://patch-diff.githubusercontent.com/raw/wahern/luaossl/pull/218.patch"; - hash = "sha256-2GOliY4/RUzOgx3rqee3X3szCdUVxYDut7d+XFcUTJw="; - }) - ] ++ final.lib.optionals (o ? patches) o.patches; - }); + luaossl' = + let inherit (final) fetchurl fetchzip; + in luaHost.pkgs.buildLuaPackage { + pname = "luaossl"; + version = "20220711-0"; + knownRockspec = + (fetchurl { + url = "mirror://luarocks/luaossl-20220711-0.rockspec"; + sha256 = "0b68kvfz587ilmb5c1p7920kysg9q4m4fl4cz4d93jl3270mzh8y"; + }).outPath; + src = fetchzip { + url = "https://github.com/wahern/luaossl/archive/rel-20220711.zip"; + sha256 = "1a9pgmc6fbhgh1m9ksz9fq057yzz46npqgakcsy9vngg47xacfdb"; + }; + patches = [ + (fetchpatch { + url = "https://patch-diff.githubusercontent.com/raw/wahern/luaossl/pull/218.patch"; + hash = "sha256-2GOliY4/RUzOgx3rqee3X3szCdUVxYDut7d+XFcUTJw="; + }) + ] ; + }; mtdutils = (prev.mtdutils.overrideAttrs (o: {