summaryrefslogtreecommitdiffstats
path: root/maintainers/scripts
AgeCommit message (Collapse)Author
2020-12-16maintainers/scripts/update.nix: Do not traverse listsJan Tojnar
Lists items are not directly accessible like attributes in attrsets are. This makes it hard to represent their address in `UPDATE_NIX_ATTR_PATH` environment variable passed to update scripts. Given that I only introduced list support for `gnome3` attribute set and we stopped using them there, let’s remove the list support again. NixOS modules are better place for package collections anyway. This was meant to go in with https://github.com/NixOS/nixpkgs/pull/98304 but got accidentally omitted somehow.
2020-11-29Merge pull request #94558 from bhipple/fix/lintBenjamin Hipple
nixpkgs-lint: ignore user's overlays
2020-11-27maintainers/scripts: remove sed script file, normalize nameSandro Jäckel
2020-10-25maintainers scripts: Fix shebangSandro
Fixes: error: syntax error, unexpected $undefined, at (string):1:94
2020-08-02nixpkgs-lint: ignore user's overlaysBenjamin Hipple
Otherwise, it can get tripped up importing things like the NUR packages. Since this is for linting Nixpkgs itself, ignoring overlays seems the way to go.
2020-07-31maintainers/*: editorconfig fixeszowoq
2020-07-07update.nix: Allow passing overlaysJan Tojnar
Previously, we relied on NIX_PATH for passing overlays but with flakes, we should pass them explicitly.
2020-07-01luaPackages.readline: init at 2.6-0 (#91854)Mitsuhiro Nakamura
2020-06-25xara: removeDaniël de Kok
Not updated since 2006: https://en.wikipedia.org/wiki/Xara_Xtreme_LX Marked broken in nixpkgs since 2016-02-27.
2020-06-17luaPackages.ldbus: init at scm-0pablo1107
2020-10-02maintainers/scripts: add update_redirected_urls to fix redirected urls using ↵Patrick Hilhorst
Repology data
2020-10-02Merge pull request #98304 from jtojnar/updateScript-commit3Jan Tojnar
maintainers/scripts/update.nix: Add support for auto-commiting changes
2020-09-20maintainers/scripts/update.nix: Clean upJan Tojnar
- Make some arguments more fitting (the path is actually full, not just relative to prefix…). - Increase the purity of packages* functions (they now take pkgs from argument, not from scope). - Add some documentation comments.
2020-09-20maintainers/scripts/update.nix: Run update scripts from the worktreeJan Tojnar
`update.nix` extracts `passthru.updateScript` attributes in the main repo and when they are relative paths (e.g. `./update.sh`), Nix will resolve them to absolute paths in the main repo. Update scripts can use $(dirname $0) to get the location of files they should update but that would point to the main repo. We want them to modify the appropriate git worktree instead so we replace the prefix accordingly. `git rev-parse --show-toplevel` will resolve symlinks but, fortunately, Nix will do that as well, so the path will match: https://github.com/NixOS/nixpkgs/pull/98304#issuecomment-695761754
2020-09-20maintainers/scripts/update.nix: run update script with UPDATE_NIX_ATTR_PATHJan Tojnar
The environment variable will contain the attribute path the script is supposed to update.
2020-09-20maintainers/scripts/update.nix: auto-detect attrPathJan Tojnar
2020-09-20maintainers/scripts/update.nix: mention when there were no changes committedJan Tojnar
2020-09-20maintainers/scripts/update.nix: support filling in auto-commit attributesJan Tojnar
We can determine all of them when attrPath is present so we might jsut as well do it.
2020-09-20maintainers/scripts/update.nix: support auto-committing by passing attrPathJan Tojnar
Instead of having the updateScript support returning JSON object, it should be sufficient to specify attrPath in passthru.updateScript. It is much easier to use. The former is now considered experimental.
2020-09-20maintainers/scripts/update.nix: switch to asyncioJan Tojnar
This will make it cleaner and also better respect SIGTERM.
2020-09-20maintainers/scripts/update.nix: refactoringJan Tojnar
Get rid of some globals, split main into smaller functions, rename some variables, add typehints.
2020-09-20maintainers/scripts/update.nix: Add support for auto-commiting changesJan Tojnar
Update scripts can now declare features using passthru.updateScript = { command = [ ../../update.sh pname ]; supportedFeatures = [ "commit" ]; }; A `commit` feature means that when the update script finishes successfully, it will print a JSON list like the following: [ { "attrPath": "volume_key", "oldVersion": "0.3.11", "newVersion": "0.3.12", "files": [ "/path/to/nixpkgs/pkgs/development/libraries/volume-key/default.nix" ] } ] and data from that will be used when update.nix is run with --argstr commit true to create commits. We will create a new git worktree for each thread in the pool and run the update script there. Then we will commit the change and cherry pick it in the main repo, releasing the worktree for a next change.
2020-09-18update.nix: use ThreadPoolExecutorJan Tojnar
Not sure why I chose ProcessPoolExecutor in the first place.
2020-09-14maintainers/build: skip packages that don't evaluateErik Arvstedt
2020-09-09maintainers/build: skip packages without metaFrancesco Gazzetta
Some packages do not have a meta attribute, and made the script crash.
2020-08-30luaPackages.lua-resty-openidc: init at 1.7.2-1Bruno Bigras
2020-08-08luaPackages.pulseaudio: remove (#94939)Doron Behar
It's not maintained any more by upstream (by @doronbehar) and it doesn't build correctly with `buildLuarocksPackage` (see #89767).
2020-06-10lua packages: remove myself from some meta.maintainersVladimír Čunát
It will really happen after regeneration (no need to hurry, I guess). Commit b7e6161b4 added me to cyrussasl by a mistake apparently. In knot-resolver upstream we dropped luaossl and luafilesystem from closure to ease up maintenance, so I no longer have motivation for them.
2020-06-06lyaml: init at 6.2.5-1, update all generated packagesLuka Blaskovic
2020-05-13maintainers/scripts/update.nix: refactor package collectorJan Tojnar
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-13maintainers/scripts/update.nix: derivation is the final stationJan Tojnar
It does not make sense to look for derivations within derivations, not even when `recurseForDerivations` is true. Nix does not do that either: https://github.com/NixOS/nix/blob/ebc024df2287085d48ed6194aa756fd70c07f76c/src/libexpr/get-drvs.cc#L346-L355
2020-05-13maintainers/scripts/update.nix: Import lib into scopeJan Tojnar
This will make it easier to change it if we want to decouple from pkgs.
2020-05-09maintainers/scripts/build.nix: script to build all maintainer packagesgnidorah
2020-05-03treewide: use https for nixos.org and hydra.nixos.orgPavol Rusnak
tarballs.nixos.org is omitted from the change because urls from there are always hashed and checked
2020-04-12discord-{ptb,canary}: update to latest versions and fixup updateScriptBenjamin Hipple
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-03-14nix-generate-from-cpan: use Module::CoreList to detect core modulesydlr
The previous way of detecting core modules failed to filter "if" and possibly other core modules.
2020-03-13nix-generate-from-cpan: remove unkown licenseydlr
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-02-20Merge pull request #80562 from NixOS/cus-brokenJan Tojnar
common-updater-scripts: Handle errors in src hashing
2020-02-19maintainers/scripts/update.nix: allow updating overlaysJan Tojnar
2020-02-11luaPackages.cosmo: init at 16.06.04-1Mario Rodas
2020-02-11luaPackages.cassowary: init at 2.2-1Mario Rodas
2020-01-27plasma5: 5.16.5 -> 5.17.5Thomas Tuegel
2020-01-25update-luarocks-packages: disable by defaultMatthieu Coudron
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-25luaPackages.vstruct: init at 2.0.2-1Matthieu Coudron
2020-01-25luaPackages.luarepl: init at 0.9-1Matthieu Coudron
2020-01-25luaPackages.luaepnf: init at 0.3-1Matthieu Coudron
2020-01-24luaPackages.linenoise: init at 0.9-1Matthieu Coudron
2020-01-24luaPackages.digestif: scm1 -> 0.2-1Matthieu Coudron
Now it's a released package so no need to specify the manifest anymore.
2019-12-20maintainers update.nix: fix typo in script helpdanbst
2019-11-25update.nix: fix evalworldofpeace