Commit Graph

383 Commits

Author SHA1 Message Date
Jan Tojnar
3f3aeb7c85
maintainers/scripts/update.nix: refactor package collector
The `packagesWith` function expected an attrSet but `packagesWithUpdateScript`
could be passing it a derivation or a list when the attribute path
supplied by user through the `--argstr path` argument pointed to one.
It only worked because derivations are also attrSets and contain their
outputs as attributes, and did not work for lists at all.

Additionally, the improper handling would cause the `src` attribute
to be built in some rare cases (`mkYarnPackage` seems to trigger this).

Rewriting the `packagesWith` function to be inductive with a derivation
as a base case and attrSets and lists as inductive steps is much cleaner
and also fixes the unnecessary build.
2020-05-13 12:12:18 +02:00
Jan Tojnar
fab2ee8c10
maintainers/scripts/update.nix: derivation is the final station
It does not make sense to look for derivations within derivations,
not even when `recurseForDerivations` is true. Nix does not do that either:

ebc024df22/src/libexpr/get-drvs.cc (L346-L355)
2020-05-13 11:06:33 +02:00
Jan Tojnar
8f50956ee0
maintainers/scripts/update.nix: Import lib into scope
This will make it easier to change it if we want to decouple from pkgs.
2020-05-13 11:06:33 +02:00
gnidorah
d0c3e7bedb maintainers/scripts/build.nix: script to build all maintainer packages 2020-05-09 18:59:04 +02:00
Pavol Rusnak
7b0167204d treewide: use https for nixos.org and hydra.nixos.org
tarballs.nixos.org is omitted from the change because urls from there
are always hashed and checked
2020-05-03 22:14:21 -07:00
Benjamin Hipple
58b812f749 discord-{ptb,canary}: update to latest versions and fixup updateScript
This commit:

- Moves the update script into the dir, out of the maintainers dir. This makes
  it more discoverable in general. It can also be invoked from anywhere to write
  to default.nix
- Swaps it to use the standardized `passthru.updateScript`. This means that
  eventually bots like `nixpkgs-update` will be able to handle it.
- Runs the script to upgrade to the latest versions

See https://nixos.org/nixpkgs/manual/#ssec-stdenv-attributes
2020-04-12 11:55:36 -04:00
ydlr
9035381b11 nix-generate-from-cpan: use Module::CoreList to detect core modules
The previous way of detecting core modules failed to filter "if" and
possibly other core modules.
2020-03-14 00:25:33 -05:00
ydlr
5e2beafd02 nix-generate-from-cpan: remove unkown license
Leave license empty when it is not provided. This prevents packages from
failing to build because the license is set to
`stdenv.lib.licenses.unkown`.

There will still be a warning about the unkown license.
2020-03-13 23:49:45 -05:00
Jan Tojnar
cf366dd5f0
Merge pull request #80562 from NixOS/cus-broken
common-updater-scripts: Handle errors in src hashing
2020-02-20 20:25:50 +01:00
Jan Tojnar
bacb0969f2
maintainers/scripts/update.nix: allow updating overlays 2020-02-19 21:06:42 +01:00
Mario Rodas
7d64380b6b
luaPackages.cosmo: init at 16.06.04-1 2020-02-11 16:18:19 +03:00
Mario Rodas
0b2a15fddd
luaPackages.cassowary: init at 2.2-1 2020-02-11 16:18:19 +03:00
Thomas Tuegel
1af6bdd48f
plasma5: 5.16.5 -> 5.17.5 2020-01-27 08:29:28 -06:00
Matthieu Coudron
27c88c51e7 update-luarocks-packages: disable by default
Not only the binary `parallel` displays a re,inder to quote their
software but it systematically breaks update here regardless of my
network quality.
Better be slow than fail. If anyone can fix it, we may rollback this.
2020-01-25 19:39:28 +01:00
Matthieu Coudron
84a2134baa luaPackages.vstruct: init at 2.0.2-1 2020-01-25 19:39:28 +01:00
Matthieu Coudron
a032a3ad90 luaPackages.luarepl: init at 0.9-1 2020-01-25 19:39:28 +01:00
Matthieu Coudron
460224d4cd luaPackages.luaepnf: init at 0.3-1 2020-01-25 19:39:28 +01:00
Matthieu Coudron
bc07d117f2 luaPackages.linenoise: init at 0.9-1 2020-01-24 21:23:08 +01:00
Matthieu Coudron
5365e3650d luaPackages.digestif: scm1 -> 0.2-1
Now it's a released package so no need to specify the manifest anymore.
2020-01-24 21:23:08 +01:00
danbst
50db72d548 maintainers update.nix: fix typo in script help 2019-12-20 08:07:44 +02:00
worldofpeace
e716e86bed update.nix: fix eval 2019-11-25 15:08:59 -05:00
John Ericson
d0d5136cce Merge remote-tracking branch 'upstream/master' into wrapper-pname-support 2019-11-24 17:25:07 +00:00
John Ericson
9b090ccbca treewide: Get rid of most parseDrvName without breaking compat
That is because this commit should be merged to both master and
release-19.09.
2019-11-24 17:22:28 +00:00
Matthieu Coudron
5f3db033df
Merge pull request #71802 from teto/luadoc
adds Luadoc.
2019-10-24 18:04:12 +09:00
Matthieu Coudron
15818981fe luaPackages.luadoc: init at 3.0.1-1
Used in vim plugins like nvim-terminal-lua to generate html docs.
2019-10-23 20:03:57 +09:00
Matthieu Coudron
af6bdae831 luaPackages.lualogging: init at 1.3.0-1
Dependency of luadoc
2019-10-23 20:00:45 +09:00
Tadeo Kondrak
70167b64c5 maintainers/scripts/update-discord: improve
- add comment specifying file is generated
- remove repetition of version number
2019-10-15 21:21:13 -07:00
Matthieu Coudron
73c64f0f38 luaPackages.luacov: init at 0.13.0-1
It is needed to run luarocks test.
2019-10-14 21:53:23 +09:00
Doron Behar
922de4f4b5 luaPackages.pulseaudio: init at 0.1 2019-10-04 21:19:19 +02:00
edef
ac1fbe68bb nix-generate-from-cpan: strip leading v from versions
Everything currently in perl-packages.nix already does this,
so we might as well automate it.
2019-09-25 01:16:02 +00:00
edef
838902a82c nix-generate-from-cpan: use pname/version rather than version
The `name` parameter to buildPerlPackage is deprecated, and
everything currently in perl-packages.nix has already been
converted to use pname/version instead.

This also changes the URLs to be pure string literals,
matching the convention used in nixpkgs in practice.
2019-09-25 01:16:02 +00:00
Samuel Leathers
11fc56348e
maintainer scripts: fix hydra-eval-failures script 2019-09-13 23:33:38 -04:00
Matthieu Coudron
59d65e23e1
Merge pull request #68258 from teto/luarocks-nix_bump
Moved luarocks-nix to community and leverage luarocks mirrors when possible.
2019-09-09 12:41:54 +09:00
Matthieu Coudron
4a3189085a luarocks-nix: bump to 2019-09-07
added version and transferred the repostiory to nix-community.
With this bump, luarocks-nix generates mirro://luarocks urls.
2019-09-08 01:14:16 +09:00
Philipp
2787d4160c lua*Packages.lua-yajl: init at 2.0-1
Dependency for mudlet >= 4.0
2019-09-07 23:05:55 +09:00
Philipp
fc250d64e5 lua*Packages.luautf8: init at 0.1.1-1
Dependency for mudlet >= 4.0
2019-09-07 23:05:55 +09:00
Matthieu Coudron
89c3c1cb42 update-luarocks-packages: reference only 1 server
we now pass a configuration file when calling luarocks to prevent
impurities.
2019-09-07 19:59:09 +09:00
Michael Fellinger
1f49035aca ruby.withPackages: init
Co-authored-by: Alyssa Ross <hi@alyssa.is>
2019-09-03 19:44:49 +00:00
Luka Blaskovic
4d11f5dabd ljsyscall: init at 20180515 2019-08-28 19:58:14 +09:00
Alexei Robyn
740a7255b6 lua*Packages.moonscript: init at 0.5.0-1 (generated) 2019-08-21 22:06:32 +10:00
Alexei Robyn
c84a282c74 lua*Packages.alt-getopt: init at 0.8.0-1 (generated) 2019-08-21 22:04:19 +10:00
worldofpeace
3f4a353737 treewide: use dontUnpack 2019-07-01 04:23:51 -04:00
Alexei Robyn
3ca771cdc3 luaPackages.luaexpat: Downgrade to fix issue and match typical distros
Matches version used on most distros. Fixes an issue with prosody.
Detailed reasoning behind this can be found
[here](https://github.com/NixOS/nixpkgs/pull/63108#issuecomment-504015507).
2019-06-24 04:08:29 +02:00
Tadeo Kondrak
e6f23b8b1e discord-{ptb,canary}: init; add update-discord 2019-06-23 11:50:09 -07:00
Alexei Robyn
671e53af67 update-luarocks: Use containing nixpkgs, ensure Lua drvs exist 2019-06-14 15:17:52 +10:00
Alexei Robyn
46c6b27633 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
2019-06-13 20:00:00 +10:00
Alexei Robyn
b7e6161b4d luarocks-packages.csv: Add remaining manual Lua expression packages
And their deps.
2019-06-13 19:58:20 +10:00
Alexei Robyn
5a249ec657 luarocks-packages.csv: Sort rows, add some missing maintainers 2019-06-13 19:52:41 +10:00
Matthieu Coudron
128ca15808 luaPackages.lpeg: 1.0.1 -> 1.0.2
and move to generated
2019-06-07 21:17:01 +09:00
Matthieu Coudron
2d77d620ce luaPackages.luaposix: move to generated 2019-06-06 14:39:14 +09:00