cripslock

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

commit 3a26ea964bbf3d6620632101f179e085f5e1d2b0
parent 5726906c1c8b4e9670540b24d282adec6e1d6cb1
Author: Daniel Barlow <dan@telent.net>
Date:   Sat,  9 Aug 2025 12:38:23 +0100

add net-url package

Diffstat:
Mdefault.nix | 4++++
Anet-url.nix | 16++++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/default.nix b/default.nix @@ -16,6 +16,9 @@ let optparse = callPackage ./lcmark/optparse.nix { inherit (luaPackages) buildLuarocksPackage luaAtLeast luaOlder ; }; + net-url = callPackage ./net-url.nix { + inherit (luaPackages) buildLuarocksPackage luaAtLeast luaOlder ; + }; cmark-lua = callPackage ./lcmark/cmark.nix { inherit (luaPackages) buildLuarocksPackage ; }; @@ -31,6 +34,7 @@ let http lcmark lpeg + net-url ]); pname = "cripslock"; in stdenv.mkDerivation { diff --git a/net-url.nix b/net-url.nix @@ -0,0 +1,16 @@ +{ buildLuarocksPackage, fetchurl, fetchzip, luaAtLeast, luaOlder }: +let version = "1.2-1"; +in buildLuarocksPackage { + pname = "net-url"; + inherit version; + knownRockspec = (fetchurl { + url = "mirror://luarocks/net-url-${version}.rockspec"; + hash = "sha256-M46TqJ8bzL68m2Ok9CG672LHOR+NZqUyOXJwZsg2Gr8="; + }).outPath; + src = fetchzip { + url = "http://github.com/golgote/neturl/archive/v${version}.zip"; + hash = "sha256-gchlnqrSrARZtdFhAzVMXpHqmq6uk2nqajwzWeDuqY0="; + }; + + disabled = luaOlder "5.1" || luaAtLeast "5.5"; +}