108 Commits

Author SHA1 Message Date
nixpkgs-ci[bot] a0ee92dfa2 Merge staging-next into staging 2026-06-02 00:49:58 +00:00
Clément 5d26766cbf treewide: add missing meta.homepage with source git repository
Added homepage where missing, where the sources are pulled from:
- https://github.com
- https://git.sr.ht
- https://gitlab.com
- https://invent.kde.org
- https://codeberg.org
- https://gitlab.gnome.org
- https://gitlab.freedesktop.org
- https://git.FreeBSD.org
- https://salsa.debian.org
- https://git.tvdr.de
- https://git.suckless.org
2026-06-01 23:40:52 +02:00
Birdee b78dd5d217 luaPackages.luarocks_bootstrap: properly configure luarocks to set LUA_LIBDIR 2026-05-11 13:43:51 +02:00
teto e7f48bdf4b luarocks-nix: 0-unstable-2024-05-31 -> 3.13-unstable-2026-03-30
I updated luarocks-nix to work from 5.1 to 5.5 by rebasing it to latest
luarocks
2026-03-31 14:16:17 +02:00
R. Ryantm c8019bd6a9 lua51Packages.luarocks_bootstrap: 3.12.2 -> 3.13.0 2025-12-31 16:21:53 +00:00
Wolfgang Walther 46c0c0eae7 Merge branch 'staging-next' into staging 2025-12-10 18:42:31 +01:00
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Jonathan Davies 116036d574 treewide: Remove redundant versionCheckProgramArg = "--version"; with:
```shell
git grep -l -e 'versionCheckProgramArg = "--version";' -e 'versionCheckProgramArg = \[ "--version" \];' | while read f; do
  sed -i '/versionCheckProgramArg/d' "$f"
  sed -i '/^$/N;/\n$/D' "$f"
done
```
2025-11-20 10:39:02 +00:00
Wolfgang Walther 90604d95bc Merge branch 'staging-next' into staging 2025-07-24 14:33:09 +02:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
R. Ryantm 8f1b5b6166 lua51Packages.luarocks_bootstrap: 3.12.0 -> 3.12.2 2025-07-21 22:17:28 +02:00
Matthieu C. 845d01c147 luarocks-nix: disable version check
it might be different from the luarocks package it overrides
2025-06-09 01:13:42 +02:00
Matthieu C. 130e159fbd luaPackages.luarocks_bootstrap: 3.11.1-1 -> 3.12.0
Changelog at https://github.com/luarocks/luarocks/blob/main/CHANGELOG.md

fixes  a nasty bug for luajit: https://github.com/luarocks/luarocks/issues/1797
2025-06-09 01:08:44 +02:00
Matthieu C. 1007183dc1 luaPackages.luarocks_bootstrap: add versionCheckHook
since I've seen issues with its version
2025-06-09 01:08:44 +02:00
R. Ryantm 182fd63145 lua51Packages.luarocks-nix: 0-unstable-2024-04-29 -> 0-unstable-2024-05-31 2025-02-07 21:00:14 +01:00
Silvan Mosberger 84d4f874c2 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 78e9caf153
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00
7c6f434c 1e2491265e luarocks-bootstrap: cmake and zip should be propagatedNativeBuildInputs (#359822) 2024-12-08 08:42:27 +00:00
Jörg Thalheim e4bb54b19d luarocks-bootstrap: cmake and zip should be nativeBuildInputs 2024-11-29 11:07:45 +01:00
Wolfgang Walther d86588d230 treewide: improve prepending and appending derivation arguments in bash code
Those would be problematic with __structuredAttrs turned on, because
they'd turn those nice bash arrays back into strings - and potentially
lose some of the values on the way.
2024-11-25 09:09:23 +01:00
Artturin 0c8ccd6b96 luaPackages.luarocks_bootstrap: Fix build
I don't know what conditions are necessary to have the files in
`/etc/luarocks` populated so using `replace-quiet`.

At least on cross there is a file which contains configuration.
2024-08-27 20:43:16 +03:00
Martin Weinelt de245ec4a5 Merge remote-tracking branch 'origin/master' into staging-next 2024-06-25 13:00:25 +02:00
Matthieu C. d0a310f4ff luarocks-nix: fix build 2024-06-24 23:06:30 +02:00
Matthieu C. e475bdd5a2 luaPackages.luarocks_bootstrap: update pname
with "_boostrap" in it
also replace -> replace-fail to avoid warning
2024-06-13 15:33:10 +02:00
Marc Jakobi 294f7a767f luaPackages.luarocks 3.11.0 -> 3.11.1 2024-06-12 14:33:40 +02:00
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Matthieu C. 2ea757a029 luaPackages.luarocks: generate luarocks as well
When installing a lua package that depends on luarocks, luarocks was not
capable of recognizing the luarocks module: https://github.com/NixOS/nixpkgs/issues/316009 .

As explained here https://github.com/luarocks/luarocks/issues/1659,
luarocks needs a manifest to recognize the package.
I first attempted to generate a manifest with `luarocks-admin
make-manifest` on our current manual luarocks derivation but this ended
up being too hackish as the `make-manifest` requires a .rockspec or
.rock to work, which we had not.

It seemed simpled to just rename the current manual luarocks derivation to luarocks_bootstrap
in order to break cyclic dependencies in buildLuarocksPackage and add a
generated luarocks derivation. Previously it was impossible to test
luarocks because of the cyclic dependency but we will now be able to
test the generated derivation.
2024-05-31 19:59:29 +02:00
Jan Tojnar 100509c030 Merge branch 'staging-next' into staging
Conflicts in luaPackages.luarocks-nix:

- 8b563cd9f9 switched to the new version format (prefixed by 0 since there was no relevant last tag in the branch).
  bc4f6fa543 bumped version and switched to the new version format. But the tag used is not part of the branch the commit comes from (master).

  Used the new version but replaced the tag prefix with 0.

- b73ec84b9e removed meta (it is already set in the overridden luarocks). But that would cause the update script to try to update the overridden luarocks (as did the previously used old.meta).
  bf311d950e modified meta to fix the update script properly.

  Kept the meta from the latter since it allows update script to work.
2024-05-05 14:50:32 +02:00
Matthieu C. bc4f6fa543 luarocks-nix: bumped to avoid systematically fetching submodules 2024-05-01 00:11:50 +02:00
Matthieu C. 986612811d luarocks: wrap propagatedBuildInputs in PATH
so that luarocks-nix can add nurl too
2024-05-01 00:11:49 +02:00
Matthieu C. b73ec84b9e luarocks: set meta.mainProgram 2024-05-01 00:11:49 +02:00
OPNA2608 bf311d950e luaPackages.luarocks-nix: Fix meta.position
Which in turn, fixes running the updateScript:

+ update-source-version luaPackages.luarocks-nix 0-unstable-2024-04-29 --rev=a473a8f479711682f5b97a72362736d96efd463b
update-source-version: error: Couldn't locate old source hash 'sha256-dqFFYehBgK0RqH0/1GtZXq7XLGCcc3Kfadq8ICYNCWk=' (or it appeared more than once) in '<nixpkgs>/pkgs/development/tools/misc/luarocks/default.nix'!
2024-04-30 21:00:03 +02:00
OPNA2608 8b563cd9f9 luaPackages.luarocks-nix: unstable-2023-10-19 -> 0-unstable-2023-10-19 2024-04-30 20:04:46 +02:00
Jeremy Baxter af3101e90a luarocks: 3.10.0 -> 3.11.0 2024-03-14 23:07:15 +01:00
Jeremy Baxter 5ec74f48ce luarocks: 3.9.2 -> 3.10.0 2024-03-06 18:38:40 +01:00
7c6f434c 08b62a0025 Merge pull request #288761 from teto/luarocks-admin-completions
luarocks: add luarocks-admin completion
2024-02-14 19:57:43 +00:00
Matthieu Coudron 3d4ea13cbe luarocks: add luarocks-admin completion 2024-02-14 11:08:15 +01:00
Jeremy Baxter 69c531d286 luarocks: 3.9.1 -> 3.9.2 2024-02-12 10:20:56 +13:00
Matthieu Coudron d83aab96a0 luarocks-nix: unstable-2023-02-26 -> unstable-2023-09-08 2023-10-22 12:45:17 +02:00
Anderson Torres c910d4628a luarocks: change self to finalAttrs 2023-04-20 22:22:23 -03:00
Matthieu Coudron 426ebe81e2 luarocks-nix: unstable-2022-10-12 -> unstable-2023-02-26
generates slightly better derivations
2023-02-26 23:33:35 +01:00
figsoda a211d94291 treewide: remove attrPath from nix-update-script calls
after https://github.com/Mic92/nix-update/pull/120 and https://github.com/NixOS/nixpkgs/pull/207703, `attrPath` can now be omitted when using `nix-update-script`
2022-12-26 12:39:21 -05:00
Markus Kowalewski f50fabb819 luarocks-nix: fix meta data 2022-11-02 23:53:04 +01:00
github-actions[bot] 969a1796ef Merge master into staging-next 2022-10-17 12:01:24 +00:00
figsoda 30a59df705 luarocks-nix: unstable-2022-09-04 -> unstable-2022-10-12 2022-10-16 15:35:25 -04:00
figsoda c3ddd95cf2 luarocks{,-nix}: add necessary programs to PATH 2022-10-11 17:22:17 +02:00
github-actions[bot] 8db2124b57 Merge staging-next into staging 2022-09-05 12:02:04 +00:00
Matthieu Coudron 6aaf666aaa bumped luarocks-nix 2022-09-04 20:55:40 +02:00
Matthieu Coudron bb22a35529 luarocks: 3.9.0 -> 3.9.1 2022-09-04 20:55:40 +02:00
Artturin 7b24b57c14 luaPackages.luarocks: don't refer to luaOnBuild 2022-08-26 20:55:30 +03:00
Artturin a2c61752fb lua.pkgs.luarocks: fix usage in cross-compilation
copy of comment https://github.com/luarocks/luarocks/pull/1433/commits/8d878e4981d71c08090f509c390dcb4c879971f6#r954257465

with this patch the build of luasystem fails

LD=ld
```
ld  -shared -o system/core.so src/core.o src/compat.o src/time.o -L/nix/store/...-glibc-2.35-163/lib -Wl,-rpath,/nix/store/...-glibc-2.35-163/lib -lrt
/nix/store/vhf2cr6immz4qdxd83y025fnxim8mmfg-binutils-2.38/bin/ld: unrecognized option '-Wl,-rpath,/nix/store/...-glibc-2.35-163/lib'
/nix/store/vhf2cr6immz4qdxd83y025fnxim8mmfg-binutils-2.38/bin/ld: use the --help option for usage information

Error: Build error: Failed compiling module system/core.so
```

LD=gcc
```
gcc  -shared -o system/core.so src/core.o src/compat.o src/time.o -L/nix/store/...-glibc-2.35-163/lib -Wl,-rpath,/nix/store/...-glibc-2.35-163/lib -lrt
```

`-Wl,rpath... -lrt` are added by https://github.com/luarocks/luarocks/blob/ecb63347bf7d44c68210befc9d03c013350c7831/src/luarocks/build/builtin.lua#L249-L250
2022-08-26 20:55:30 +03:00