Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7fd23d128b10
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a9166c763d81
Choose a head ref

Commits on Jun 12, 2019

  1. cloud-nuke: init at 0.1.7

    marsam committed Jun 12, 2019
    Copy the full SHA
    2cae7ce View commit details

Commits on Jun 13, 2019

  1. Copy the full SHA
    5a249ec View commit details
  2. Copy the full SHA
    b7e6161 View commit details
  3. update-luarocks: Several improvements

    Changes:
    - Fetches rocks and builds Nix expressions for them in parallel
    - Passes 'maintainers' list to luarocks-nix
    - Constructs the luarocks argument list more cleanly, by using an
      indexed array
    - Made indentation consistent
    Shados committed Jun 13, 2019
    Copy the full SHA
    46c6b27 View commit details
  4. Copy the full SHA
    00622f1 View commit details
  5. lua-modules: update generated-packages.nix

    Summary of resulting package updates:
    - bit32: init at 5.3.0-1 (same as current hand-written derivation)
    - busted: 2.0.rc12-1 -> 2.0.rc13-0
    - compat53: init at 0.7-1 (same as current hand-written derivation)
    - cqueues: init at 20171014-0 (same as current hand-written derivation)
    - cyrussasl: init at 1.1.0-1 (same as current hand-written derivation)
    - lrexlib-pcre: init at 2.9.0-1 (vs 2.8.0 in current hand-written
      lrexlib derivation)
    - luadbi and backends (luadbi-{mysql,postgresql,sqlite3}): init at
      0.7.2-1 (vs 0.7.1 in current hand-written derivation)
    - luaexpat: init at 1.3.3-1 (vs 1.3.0 in current hand-written
      derivation)
    - luafilesystem: init at 1.7.0-2 (same as current hand-written
      derivation)
    - luaossl: init at 20190612-0 (vs 20181207 in current hand-written
      derivation)
    - luasec: init at 0.8-1 (same as current hand-written derivation)
    - luasocket: init at 3.0rc1-2 (same as current hand-written derivation)
    - luasql-sqlite3: init at 2.4.0-1 (vs 2.3.0 in current hand-written
      luasqlite3 derivation)
    - rapidjson: 0.5.1-1 -> 0.5.2-1
    - stdlib: init at 41.2.2-1 (vs 41.2.1 in current hand-written
      derivation)
    Shados committed Jun 13, 2019
    Copy the full SHA
    2792dc8 View commit details
  6. luarocks: 3.0.4 -> 3.1.3

    The newer version silences some superfluous warnings we were previously
    getting in Nix builds using luarocks.
    Shados committed Jun 13, 2019
    Copy the full SHA
    f8efece View commit details
  7. buildLuarocksPackage: Several improvements

    Summary of main changes:
    - Now makes use of luarocks dependency resolution (builds will fail if
      rockspec dependencies are unmet)
    - Renamed argument `external_deps` -> `exernalDeps` and add
      functionality to handle external dependencies that are multiple-output
      derivations
    - Added an `extraVariables` argument for appending to the contents of
      luarocks config `variables` table
    - The `rockspecFilename` argument default is now actually used
    - The `disabled` argument can now be overriden with a less-restrictive
      check, as it now just sets `meta.broken` instead of throwing an error
      during eval
    - The `doCheck` argument is now actually honored if set to `true`
    Shados committed Jun 13, 2019
    Copy the full SHA
    8eabbb3 View commit details

Commits on Jun 14, 2019

  1. luaPackages: Replace all rockspec packages with generated ones

    luaPackages replaced by generated ones:
    - bit32
    - compat53
    - cqueues
    - luacyrussasl -> cyrussasl (luarocks name)
    - luaexpat
    - luadbi -> luadbi front-end module + separate backend modules
      luadbi-{mysql,postgresql,sqlite3}
    - luafilesystem
    - luaossl
    - luasec
    - luasocket
    - luastdlib -> stdlib (luarocks name)
    - lrexlib -> lrexlib-pcre (we already have lrexlib-gnu and
      lrexlib-posix, lrexlib-pcre however appears to be the variant used in
      mudlet, which is the only current dep in nixpkgs)
    - luasqlite -> luasql-sqlite3 (luarocks name)
    - lfs -> luafilesytem (we literally had two manually written
      luafilesystem expressions, under different names)
    
    Changes and additions to overrides to generated luarocks packgaes,
    including:
    - busted: Install bash completions along with the zsh ones
    - cqueues:
        - Perform minor surgery on the rockspec to allow using a single
          rockspec to build for all supported Lua versions
        - Add a patch by @vcunat to work around a build issue
    - luuid: Wrote a tiny patch to allow for Lua 5.1/Luajit compatibility
    - General changes:
        - Sorted the packages
        - Attempted to make the formatting consistent
        - Preferenced `.override` instead of `.overrideAttrs` wherever
          possible
    
    Minor changes to other packages to adjust for the Lua package changes:
    - luakit expression simplified
    - prosody expression simplified; but users will now need to specify the
      luadbi backend module they intend to use in withExtraLibs
    - knot-resolver inputs correctd
    - mudlet inputs corrected (although this package was and should still be
      broken)
    Shados committed Jun 14, 2019
    Copy the full SHA
    274715c View commit details
  2. Copy the full SHA
    671e53a View commit details
  3. linux: enable config option for raw HID devices

    This flag allows for things like Uninterruptable Power Supplies to work properly. See https://cateee.net/lkddb/web-lkddb/USB_HIDDEV.html for more information.
    duckfullstop committed Jun 14, 2019
    Copy the full SHA
    4cd1dd5 View commit details

Commits on Jun 15, 2019

  1. doc/idris: Fix install instructions

    Because of nix-env weirdness, I introduced a mistake in the docs in
    NixOS/nixpkgs#50182, this fixes it.
    infinisil committed Jun 15, 2019
    Copy the full SHA
    eda8c36 View commit details

Commits on Jun 16, 2019

  1. localtime: install systemd serice and polkit rules

    - Use the right variables and `make install` to ensure all products are
    installed.
    - Remove unneeded build inputs: we don't need systemd or polkit to
    install the service or polkit rules.
    michaelpj committed Jun 16, 2019
    Copy the full SHA
    66da10e View commit details
  2. bazelisk: 0.0.4 -> 0.0.7

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/bazelisk/versions
    r-ryantm committed Jun 16, 2019
    Copy the full SHA
    3d0d64b View commit details

Commits on Jun 17, 2019

  1. mill: 0.4.0 -> 0.4.1

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/mill/versions
    r-ryantm committed Jun 17, 2019
    Copy the full SHA
    7598c11 View commit details
  2. ncdc: 1.22 -> 1.22.1

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/ncdc/versions
    r-ryantm committed Jun 17, 2019
    Copy the full SHA
    6865550 View commit details
  3. now-cli: 15.3.0 -> 15.5.0

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/now-cli/versions
    r-ryantm committed Jun 17, 2019
    Copy the full SHA
    de6f163 View commit details
  4. openfortivpn: 1.9.0 -> 1.10.0

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/openfortivpn/versions
    r-ryantm committed Jun 17, 2019
    Copy the full SHA
    021257e View commit details
  5. python37Packages.falcon: 1.4.1 -> 2.0.0

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/python3.7-falcon/versions
    r-ryantm authored and marsam committed Jun 17, 2019
    Copy the full SHA
    802b889 View commit details

Commits on Jun 18, 2019

  1. Copy the full SHA
    bd1788c View commit details
  2. xmrig: 2.14.1 -> 2.14.4

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/xmrig/versions
    r-ryantm committed Jun 18, 2019
    Copy the full SHA
    8edcccf View commit details
  3. Copy the full SHA
    2458209 View commit details
  4. ctop: 2017-05-28 -> 0.7.2

    marsam committed Jun 18, 2019
    Copy the full SHA
    b7902a7 View commit details
  5. prometheus_2: 2.9.2 -> 2.10.0

    marsam committed Jun 18, 2019
    Copy the full SHA
    4883b07 View commit details

Commits on Jun 19, 2019

  1. Copy the full SHA
    3576ba7 View commit details
  2. Merge pull request #63320 from r-ryantm/auto-update/openfortivpn

    openfortivpn: 1.9.0 -> 1.10.0
    madjar authored Jun 19, 2019
    Copy the full SHA
    85c551a View commit details
  3. gappa: 1.2 -> 1.3.5

    vbgl committed Jun 19, 2019
    Copy the full SHA
    1f2a3a2 View commit details
  4. coqPackages.gappalib: init at 1.4.1

    This is the Coq support library for Gappa.
    vbgl committed Jun 19, 2019
    Copy the full SHA
    37eef90 View commit details
  5. Merge pull request #63142 from luaduck/kernel-usbhiddev-pls

    linux: Enable kernel config option for raw HID devices
    teto authored Jun 19, 2019
    Copy the full SHA
    d81797a View commit details
  6. ctypes_sh: init at 1.1

    tadeokondrak authored and Matthieu Coudron committed Jun 19, 2019
    Copy the full SHA
    1e2f49a View commit details
  7. Copy the full SHA
    4fa9669 View commit details
  8. Merge pull request #63413 from etu/gitea-183-update

    gitea: 1.8.2 -> 1.8.3
    aanderse authored Jun 19, 2019
    Copy the full SHA
    93412bc View commit details
  9. Merge pull request #63479 from lheckemann/dcm2niix

    dcm2niix: 1.0.20170130 -> 1.0.20190410
    lheckemann authored Jun 19, 2019
    Copy the full SHA
    32a992a View commit details
  10. localtime: use upstream unit and fix polkit rule installation

    Also don't allocate a user - the upstream unit uses DynamicUser.
    michaelpj committed Jun 19, 2019
    Copy the full SHA
    0073c1f View commit details
  11. Merge pull request #63492 from marsam/update-ctop

    ctop: 2017-05-28 -> 0.7.2
    marsam authored Jun 19, 2019
    Copy the full SHA
    90483f7 View commit details
  12. xiccd: 0.2.4 -> 0.3.0

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/xiccd/versions
    r-ryantm authored and abbradar committed Jun 19, 2019
    Copy the full SHA
    07b6eb6 View commit details
  13. Merge pull request #63356 from r-ryantm/auto-update/python3.7-falcon

    python37Packages.falcon: 1.4.1 -> 2.0.0
    marsam authored Jun 19, 2019
    Copy the full SHA
    6716a07 View commit details
  14. Merge pull request #63050 from marsam/init-cloud-nuke

    cloud-nuke: init at 0.1.7
    marsam authored Jun 19, 2019
    Copy the full SHA
    56cc1e3 View commit details
  15. Merge pull request #63108 from Shados/lua-packaging-improvements-pr

    Lua/luarocks packaging improvements
    teto authored Jun 19, 2019
    Copy the full SHA
    c33153b View commit details
  16. Merge pull request #63466 from r-ryantm/auto-update/xmrig

    xmrig: 2.14.1 -> 2.14.4
    marsam authored Jun 19, 2019
    Copy the full SHA
    cf64378 View commit details
  17. Merge pull request #63298 from r-ryantm/auto-update/mill

    mill: 0.4.0 -> 0.4.1
    marsam authored Jun 19, 2019
    Copy the full SHA
    de39358 View commit details
  18. nheko: 0.6.3 -> 0.6.4, mtxclient: 0.2.0 -> 0.2.1

    Use new URL of mtxclient. Make them both aware of nlohmann_json
    dependency using `-Dnlohmann_json_DIR` in `cmakeFlags`.
    doronbehar committed Jun 19, 2019
    Copy the full SHA
    0b383bd View commit details
  19. Merge pull request #63204 from michaelpj/imp/localtime-upstream

    localtime: use upstream unit, fix polkit rules
    worldofpeace authored Jun 19, 2019
    Copy the full SHA
    d672cee View commit details
  20. Merge pull request #63314 from r-ryantm/auto-update/now-cli

    now-cli: 15.3.0 -> 15.5.0
    marsam authored Jun 19, 2019
    Copy the full SHA
    195d2cd View commit details
  21. Merge pull request #63309 from r-ryantm/auto-update/ncdc

    ncdc: 1.22 -> 1.22.1
    marsam authored Jun 19, 2019
    Copy the full SHA
    e1d4b77 View commit details
  22. Merge pull request #63487 from marsam/update-prometheus_2

    prometheus_2: 2.9.2 -> 2.10.0
    marsam authored Jun 19, 2019
    Copy the full SHA
    ad9f782 View commit details
  23. Copy the full SHA
    904b69d View commit details
  24. linux: 4.19.52 -> 4.19.53

    NeQuissimus committed Jun 19, 2019
    Copy the full SHA
    e7a8570 View commit details
  25. linux: 5.1.11 -> 5.1.12

    NeQuissimus committed Jun 19, 2019
    Copy the full SHA
    67b1591 View commit details
  26. Copy the full SHA
    fa58c67 View commit details
Showing with 1,437 additions and 1,204 deletions.
  1. +13 −2 doc/languages-frameworks/idris.section.md
  2. +5 −0 maintainers/maintainer-list.nix
  3. +28 −12 maintainers/scripts/luarocks-packages.csv
  4. +63 −42 maintainers/scripts/update-luarocks-packages
  5. +9 −0 maintainers/scripts/update-luarocks-shell.nix
  6. +1 −0 nixos/modules/services/misc/gitea.nix
  7. +7 −24 nixos/modules/services/system/localtime.nix
  8. +2 −2 pkgs/applications/misc/xmrig/default.nix
  9. +10 −15 pkgs/applications/networking/browsers/luakit/default.nix
  10. +6 −3 pkgs/applications/networking/instant-messengers/nheko/default.nix
  11. +2 −2 pkgs/applications/networking/instant-messengers/zoom-us/default.nix
  12. +2 −2 pkgs/applications/networking/p2p/ncdc/default.nix
  13. +4 −3 pkgs/applications/science/biology/dcm2niix/default.nix
  14. +3 −3 pkgs/applications/science/logic/gappa/default.nix
  15. +2 −2 pkgs/applications/version-management/gitea/default.nix
  16. +3 −3 pkgs/development/compilers/ghc/8.8.1.nix
  17. +30 −0 pkgs/development/coq-modules/gappalib/default.nix
  18. +85 −28 pkgs/development/interpreters/lua-5/build-lua-package.nix
  19. +28 −0 pkgs/development/libraries/ctypes_sh/default.nix
  20. +8 −16 pkgs/development/libraries/mtxclient/default.nix
  21. +13 −0 pkgs/development/libraries/rocksdb/0001-findzlib.patch
  22. +28 −71 pkgs/development/libraries/rocksdb/default.nix
  23. +572 −231 pkgs/development/lua-modules/generated-packages.nix
  24. +0 −37 pkgs/development/lua-modules/luasql.patch
  25. +16 −0 pkgs/development/lua-modules/luuid.patch
  26. +223 −76 pkgs/development/lua-modules/overrides.nix
  27. +4 −0 pkgs/development/python-modules/faker/default.nix
  28. +3 −6 pkgs/development/python-modules/falcon/default.nix
  29. +2 −2 pkgs/development/tools/bazelisk/default.nix
  30. +2 −2 pkgs/development/tools/build-managers/mill/default.nix
  31. +24 −0 pkgs/development/tools/cloud-nuke/default.nix
  32. +138 −0 pkgs/development/tools/cloud-nuke/deps.nix
  33. 0 pkgs/development/tools/misc/luarocks/{darwin.patch → darwin-3.0.x.patch}
  34. +24 −0 pkgs/development/tools/misc/luarocks/darwin-3.1.3.patch
  35. +3 −3 pkgs/development/tools/misc/luarocks/default.nix
  36. +5 −2 pkgs/development/tools/misc/luarocks/luarocks-nix.nix
  37. +2 −2 pkgs/development/web/now-cli/default.nix
  38. +4 −4 pkgs/games/mudlet/default.nix
  39. +1 −0 pkgs/os-specific/linux/kernel/common-config.nix
  40. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  41. +2 −2 pkgs/os-specific/linux/kernel/linux-4.19.nix
  42. +2 −2 pkgs/os-specific/linux/kernel/linux-5.1.nix
  43. +1 −1 pkgs/servers/dns/knot-resolver/default.nix
  44. +2 −2 pkgs/servers/monitoring/prometheus/default.nix
  45. +15 −17 pkgs/servers/xmpp/prosody/default.nix
  46. +2 −2 pkgs/shells/zsh/oh-my-zsh/default.nix
  47. +1 −0 pkgs/tools/filesystems/ceph/generic.nix
  48. +2 −2 pkgs/tools/misc/xiccd/default.nix
  49. +2 −2 pkgs/tools/networking/openfortivpn/default.nix
  50. +12 −15 pkgs/tools/system/ctop/default.nix
  51. +0 −120 pkgs/tools/system/ctop/deps.nix
  52. +8 −6 pkgs/tools/system/localtime/default.nix
  53. +1 −0 pkgs/tools/system/osquery/default.nix
  54. +7 −4 pkgs/top-level/all-packages.nix
  55. +1 −0 pkgs/top-level/coq-packages.nix
  56. +1 −1 pkgs/top-level/emacs-packages.nix
  57. +1 −431 pkgs/top-level/lua-packages.nix
15 changes: 13 additions & 2 deletions doc/languages-frameworks/idris.section.md
Original file line number Diff line number Diff line change
@@ -11,10 +11,21 @@ $ # On non-NixOS
$ nix-env -i nixpkgs.idris
```

This however only provides the `prelude` and `base` libraries. To install additional libraries:
This however only provides the `prelude` and `base` libraries. To install idris with additional libraries, you can use the `idrisPackages.with-packages` function, e.g. in an overlay in `~/.config/nixpkgs/overlays/my-idris.nix`:

```nix
self: super: {
myIdris = with self.idrisPackages; with-packages [ contrib pruviloj ];
}
```
$ nix-env -iE 'pkgs: pkgs.idrisPackages.with-packages (with pkgs.idrisPackages; [ contrib pruviloj ])'

And then:

```
$ # On NixOS
$ nix-env -iA nixos.myIdris
$ # On non-NixOS
$ nix-env -iA nixpkgs.myIdris
```

To see all available Idris packages:
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -3016,6 +3016,11 @@
github = "MarcFontaine";
name = "Marc Fontaine";
};
magenbluten = {
email = "magenbluten@codemonkey.cc";
github = "magenbluten";
name = "magenbluten";
};
magnetophon = {
email = "bart@magnetophon.nl";
github = "magnetophon";
40 changes: 28 additions & 12 deletions maintainers/scripts/luarocks-packages.csv
Original file line number Diff line number Diff line change
@@ -3,10 +3,17 @@ ansicolors,,,,,
argparse,,,,,
basexx,,,,,
binaryheap,,,,,vcunat
bit32,,,,lua5_1,lblasc
busted,,,,,
cjson,lua-cjson,,,,
compat53,,,,,vcunat
coxpcall,,,1.17.0-1,,
cqueues,,,,,vcunat
cyrussasl,,,,,vcunat
digestif,,http://luarocks.org/dev,,lua5_3,
dkjson,,,,,
fifo,,,,,
http,,,,,
http,,,,,vcunat
inspect,,,,,
ldoc,,,,,
lgi,,,,,
@@ -15,35 +22,44 @@ lpeg_patterns,,,,,
lpeglabel,,,,,
lpty,,,,,
lrexlib-gnu,,,,,
lrexlib-pcre,,,,,vyp
lrexlib-posix,,,,,
ltermbox,,,,,
cjson,lua-cjson,,,,
lua-cmsgpack,,,,,
lua_cliargs,,,,,
lua-iconv,,,,,
lua-lsp,,http://luarocks.org/dev,,,
lua-messagepack,,,,,
lua-term,,,,,
lua-toml,,,,,
lua-zlib,,,,,koral
lua_cliargs,,,,,
luabitop,,,,,
luaevent,,,,,
luacheck,,,,,
luadbi,,,,,
luadbi-mysql,,,,,
luadbi-postgresql,,,,,
luadbi-sqlite3,,,,,
luaevent,,,,,
luaexpat,,,,,flosse
luaffi,,http://luarocks.org/dev,,,
luafilesystem,,,1.7.0-2,,flosse vcunat
luaossl,,,,lua5_1,vcunat
luaposix,,,,,vyp lblasc
luasec,,,,,flosse
luasocket,,,,,
luasql-sqlite3,,,,,vyp
luassert,,,,,
luasystem,,,,,
luazip,,,,,
luuid,,,,,
luv,,,,,
markdown,,,,,
mediator_lua,,,,,
mpack,,,,,
nvim-client,,,,,
penlight,,,,,
rapidjson,,,,,
say,,,,,
std__debug,std._debug,,,,
std_normalize,std.normalize,,,,
luv,,,,,
luasystem,,,,,
mediator_lua,,http://luarocks.org/manifests/teto,,,
mpack,,,,,
nvim-client,,,,,
busted,,http://luarocks.org/manifests/teto,,,
luassert,,,,,
coxpcall,,https://luarocks.org/manifests/hisham,1.17.0-1,,
stdlib,,,,,vyp
105 changes: 63 additions & 42 deletions maintainers/scripts/update-luarocks-packages
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -p nix-prefetch-scripts luarocks-nix -i bash
#!nix-shell update-luarocks-shell.nix -i bash

# You'll likely want to use
# ``
@@ -8,17 +8,21 @@
# to update all libraries in that folder.
# to debug, redirect stderr to stdout with 2>&1


# stop the script upon C-C
set -eu -o pipefail

CSV_FILE="maintainers/scripts/luarocks-packages.csv"
TMP_FILE="$(mktemp)"
# Set in the update-luarocks-shell.nix
NIXPKGS_PATH="$LUAROCKS_NIXPKGS_PATH"

exit_trap()
{
local lc="$BASH_COMMAND" rc=$?
test $rc -eq 0 || echo -e "*** error $rc: $lc.\nGenerated temporary file in $TMP_FILE" >&2
# 10 is a pretty arbitrary number of simultaneous jobs, but it is generally
# impolite to hit a webserver with *too* many simultaneous connections :)
PARALLEL_JOBS=10

exit_trap() {
local lc="$BASH_COMMAND" rc=$?
test $rc -eq 0 || echo -e "*** error $rc: $lc.\nGenerated temporary file in $TMP_FILE" >&2
}

print_help() {
@@ -37,19 +41,19 @@ fi
trap exit_trap EXIT

while getopts ":hc:" opt; do
case $opt in
case $opt in
h)
print_help
;;
print_help
;;
c)
echo "Loading package list from $OPTARG !" >&2
CSV_FILE="$OPTARG"
;;
echo "Loading package list from $OPTARG !" >&2
CSV_FILE="$OPTARG"
;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;
esac
shift $((OPTIND-1))
echo "Invalid option: -$OPTARG" >&2
;;
esac
shift $((OPTIND - 1))
done

GENERATED_NIXFILE="$1"
@@ -72,43 +76,60 @@ FOOTER="
/* GENERATED */
"


function convert_pkg () {
function convert_pkg() {
nix_pkg_name="$1"
lua_pkg_name="$2"
server="${3:+--only-server=$3}"
pkg_version="${4:-}"
lua_version="${5:+--lua-dir=$(nix path-info nixpkgs.$5)/bin}"

echo "looking at $lua_pkg_name (version $pkg_version) from server [$server]" >&2
cmd="luarocks nix $server $lua_version $lua_pkg_name $pkg_version"
echo "Running $cmd" >&2
drv="$nix_pkg_name = $($cmd)"
if [ $? -ne 0 ]; then
echo "Failed to convert $pkg" >&2
server="$3"
pkg_version="$4"
lua_version="$5"
maintainers="$6"

if [ "${nix_pkg_name:0:1}" == "#" ]; then
echo "Skipping comment ${*}" >&2
return
fi
if [ -z "$lua_pkg_name" ]; then
echo "Using nix_name as lua_pkg_name for '$nix_pkg_name'" >&2
lua_pkg_name="$nix_pkg_name"
fi

echo "Building expression for $lua_pkg_name (version $pkg_version) from server [$server]" >&2
luarocks_args=(nix)
if [[ -n $server ]]; then
luarocks_args+=("--only-server=$server")
fi
if [[ -n $maintainers ]]; then
luarocks_args+=("--maintainers=$maintainers")
fi
if [[ -n $lua_version ]]; then
lua_drv_path=$(nix-build --no-out-link "$NIXPKGS_PATH" -A "$lua_version")
luarocks_args+=("--lua-dir=$lua_drv_path/bin")
fi
luarocks_args+=("$lua_pkg_name")
if [[ -n $pkg_version ]]; then
luarocks_args+=("$pkg_version")
fi
echo "Running 'luarocks ${luarocks_args[*]}'" >&2
if drv="$nix_pkg_name = $(luarocks "${luarocks_args[@]}")"; then
echo "$drv"
else
echo "$drv" | tee -a "$TMP_FILE"
echo "Failed to convert $nix_pkg_name" >&2
return 1
fi
}

# params needed when called via callPackage
echo "$HEADER" | tee "$TMP_FILE"

# list of packages with format
while IFS=, read -r nix_pkg_name lua_pkg_name server pkg_version luaversion
do
if [ "${nix_pkg_name:0:1}" == "#" ]; then
echo "Skipping comment ${nix_pkg_name}" >&2
continue
fi
if [ -z "$lua_pkg_name" ]; then
echo "Using nix_name as lua_pkg_name" >&2
lua_pkg_name="$nix_pkg_name"
fi
convert_pkg "$nix_pkg_name" "$lua_pkg_name" "$server" "$pkg_version" "$luaversion"
done < "$CSV_FILE"
# Ensure parallel can run our bash function
export -f convert_pkg
export SHELL=bash
# Read each line in the csv file and run convert_pkg for each, in parallel
parallel --group --keep-order --halt now,fail=1 --jobs "$PARALLEL_JOBS" --colsep ',' convert_pkg {} <"$CSV_FILE" | tee -a "$TMP_FILE"

# close the set
echo "$FOOTER" | tee -a "$TMP_FILE"

cp "$TMP_FILE" "$GENERATED_NIXFILE"

# vim: set ts=4 sw=4 ft=sh:
9 changes: 9 additions & 0 deletions maintainers/scripts/update-luarocks-shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ nixpkgs ? import ../.. { }
}:
with nixpkgs;
mkShell {
buildInputs = [
bash luarocks-nix nix-prefetch-scripts parallel
];
LUAROCKS_NIXPKGS_PATH = toString nixpkgs.path;
}
1 change: 1 addition & 0 deletions nixos/modules/services/misc/gitea.nix
Original file line number Diff line number Diff line change
@@ -307,6 +307,7 @@ in
systemd.tmpfiles.rules = [
"d '${cfg.stateDir}' - ${cfg.user} gitea - -"
"d '${cfg.stateDir}/conf' - ${cfg.user} gitea - -"
"d '${cfg.stateDir}/custom' - ${cfg.user} gitea - -"
"d '${cfg.stateDir}/custom/conf' - ${cfg.user} gitea - -"
"d '${cfg.repositoryRoot}' - ${cfg.user} gitea - -"
"Z '${cfg.stateDir}' - ${cfg.user} gitea - -"
31 changes: 7 additions & 24 deletions nixos/modules/services/system/localtime.nix
Original file line number Diff line number Diff line change
@@ -28,33 +28,16 @@ in {
};
};

# so polkit will pick up the rules
environment.systemPackages = [ pkgs.localtime ];

users.users = [{
name = "localtimed";
description = "Taskserver user";
}];
# We use the 'out' output, since localtime has its 'bin' output
# first, so that is what we get if we use the derivation bare.
# Install the polkit rules.
environment.systemPackages = [ pkgs.localtime.out ];
# Install the systemd unit.
systemd.packages = [ pkgs.localtime.out ];

systemd.services.localtime = {
description = "localtime service";
wantedBy = [ "multi-user.target" ];
partOf = [ "geoclue.service "];

serviceConfig = {
Restart = "on-failure";
# TODO: make it work with dbus
#DynamicUser = true;
Nice = 10;
User = "localtimed";
PrivateTmp = "yes";
PrivateDevices = true;
PrivateNetwork = "yes";
NoNewPrivileges = "yes";
ProtectSystem = "strict";
ProtectHome = true;
ExecStart = "${pkgs.localtime}/bin/localtimed";
};
serviceConfig.Restart = "on-failure";
};
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/misc/xmrig/default.nix
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@

stdenv.mkDerivation rec {
name = "xmrig-${version}";
version = "2.14.1";
version = "2.14.4";

src = fetchFromGitHub {
owner = "xmrig";
repo = "xmrig";
rev = "v${version}";
sha256 = "0pc3ssmnn36xs3jgznx36q4z3qh06fkbz8md3p3rk6rpvly929pn";
sha256 = "0hmla9ys9gmmcrmkidw05ygiz734rs7skb9w86jnwxi5nlpxqrhj";
};

nativeBuildInputs = [ cmake ];
25 changes: 10 additions & 15 deletions pkgs/applications/networking/browsers/luakit/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
{ stdenv, fetchFromGitHub, pkgconfig, wrapGAppsHook
, help2man, lua5, luafilesystem, luajit, sqlite
, help2man, luafilesystem, luajit, sqlite
, webkitgtk, gtk3, gst_all_1, glib-networking
}:

let
lualibs = [luafilesystem];
getPath = lib : type : "${lib}/lib/lua/${lua5.luaversion}/?.${type};${lib}/share/lua/${lua5.luaversion}/?.${type}";
getLuaPath = lib : getPath lib "lua";
getLuaCPath = lib : getPath lib "so";
luaPath = stdenv.lib.concatStringsSep ";" (map getLuaPath lualibs);
luaCPath = stdenv.lib.concatStringsSep ";" (map getLuaCPath lualibs);

in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "luakit";
version = "2.1";

@@ -27,7 +19,7 @@ in stdenv.mkDerivation rec {
];

buildInputs = [
webkitgtk lua5 luafilesystem luajit sqlite gtk3
webkitgtk luafilesystem luajit sqlite gtk3
gst_all_1.gstreamer gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-ugly
gst_all_1.gst-libav
@@ -36,8 +28,11 @@ in stdenv.mkDerivation rec {

preBuild = ''
# build-utils/docgen/gen.lua:2: module 'lib.lousy.util' not found
# TODO: why is not this the default?
LUA_PATH=?.lua
# TODO: why is not this the default? The test runner adds
# ';./lib/?.lua;./lib/?/init.lua' to package.path, but the build-utils
# scripts don't add an equivalent
export LUA_PATH="$NIX_LUA_PATH;./?.lua;./?/init.lua"
export LUA_CPATH="$NIX_LUA_CPATH"
'';

makeFlags = [
@@ -54,8 +49,8 @@ in stdenv.mkDerivation rec {
in ''
gappsWrapperArgs+=(
--prefix XDG_CONFIG_DIRS : "$out/etc/xdg"
--set LUA_PATH '${luaKitPath};${luaPath};'
--set LUA_CPATH '${luaCPath};'
--prefix LUA_PATH ';' "${luaKitPath};$NIX_LUA_PATH"
--prefix LUA_CPATH ';' "$NIX_LUA_CPATH"
)
'';

Loading