about summary refs log tree commit diff
path: root/maintainers/scripts
AgeCommit message (Collapse)AuthorFilesLines
2021-03-22scripts.pluginupdate: write final newlineFlakebi1-0/+1
json.dump does not write any newline, so the final newline in the file is missing.
2021-03-16vimPlugins: fix pluginupdate.pyAndrey Kuznetsov1-1/+1
2021-03-14Merge pull request #108363 from Flakebi/kakouneAnderson Torres1-0/+526
kakounePlugins: use vim’s update.py script to generate plugins
2021-02-25vimPlugins: make update.py generic over editorFlakebi1-0/+526
Move the script to maintainers/scripts/pluginupdate.py. Importing it from the vim and kakoune update scripts is done in the commit afterwards to cleanup the diff.
2021-02-19treewide: makeWrapper buildInputs to nativeBuildInputsBen Siraphob1-1/+2
2021-01-23luarocks-update-packages: pass "lib" in argumentsMatthieu Coudron1-1/+1
2021-01-22luaPackages.cassowary: add alerque as maintainerMatthieu Coudron1-1/+1
it was added in the generated file, move it to the source of truth for the generated files.
2021-01-17nixos/modules: stdenv.lib -> libPavol Rusnak1-4/+4
2021-01-14nix-generate-from-cpan: stdenv.lib -> lib in exprAlyssa Ross1-3/+3
7d20329 updated the implementation but not the expression.
2021-01-10nix-generate-from-cpan: quote homepage, stdenv.lib -> libStig Palmquist1-3/+3
2021-01-06Merge pull request #101741 from SuperSandro2000/check-hydraSandro1-0/+67
maintainer scripts: init check-hydra-by-maintainer.nix
2020-12-26Revert "fetch-kde-qt.sh: get hashes from metadata"Thomas Tuegel1-5/+4
This reverts commit 4b7d9dc86800fa7b861f47ae0e6e3a8f097f9ce7. The KDE project has changed their source index pages so that the links to package metadata files are generated by JavaScript after the page loads. As a result, wget is no longer able to recursively fetch the package metadata automatically.
2020-12-16maintainers/scripts/update.nix: Do not traverse listsJan Tojnar1-3/+1
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 Hipple1-1/+1
nixpkgs-lint: ignore user's overlays
2020-11-27maintainers/scripts: remove sed script file, normalize nameSandro Jäckel1-0/+1
2020-11-26maintainer scripts: init check-hydra-by-maintainer.nixSandro Jäckel1-0/+67
2020-10-25maintainers scripts: Fix shebangSandro1-1/+1
Fixes: error: syntax error, unexpected $undefined, at (string):1:94
2020-08-02nixpkgs-lint: ignore user's overlaysBenjamin Hipple1-1/+1
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 fixeszowoq1-2/+1
2020-07-07update.nix: Allow passing overlaysJan Tojnar1-1/+7
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 Nakamura1-0/+1
2020-06-25xara: removeDaniël de Kok1-1/+1
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-0pablo11071-0/+1
2020-10-02maintainers/scripts: add update_redirected_urls to fix redirected urls using ↵Patrick Hilhorst1-0/+11
Repology data
2020-10-02Merge pull request #98304 from jtojnar/updateScript-commit3Jan Tojnar2-80/+258
maintainers/scripts/update.nix: Add support for auto-commiting changes
2020-09-20maintainers/scripts/update.nix: Clean upJan Tojnar1-30/+52
- 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 Tojnar1-5/+15
`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 Tojnar1-1/+1
The environment variable will contain the attribute path the script is supposed to update.
2020-09-20maintainers/scripts/update.nix: auto-detect attrPathJan Tojnar2-27/+30
2020-09-20maintainers/scripts/update.nix: mention when there were no changes committedJan Tojnar1-2/+6
2020-09-20maintainers/scripts/update.nix: support filling in auto-commit attributesJan Tojnar1-19/+31
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 Tojnar2-4/+27
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 Tojnar1-67/+113
This will make it cleaner and also better respect SIGTERM.
2020-09-20maintainers/scripts/update.nix: refactoringJan Tojnar1-38/+47
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 Tojnar2-9/+58
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 Tojnar1-1/+1
Not sure why I chose ProcessPoolExecutor in the first place.
2020-09-14maintainers/build: skip packages that don't evaluateErik Arvstedt1-2/+6
2020-09-09maintainers/build: skip packages without metaFrancesco Gazzetta1-1/+1
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 Bigras1-0/+4
2020-08-08luaPackages.pulseaudio: remove (#94939)Doron Behar1-1/+0
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át1-3/+3
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 Blaskovic1-0/+1
2020-05-13maintainers/scripts/update.nix: refactor package collectorJan Tojnar1-27/+30
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 Tojnar1-2/+2
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 Tojnar1-15/+17
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 packagesgnidorah1-0/+43
2020-05-03treewide: use https for nixos.org and hydra.nixos.orgPavol Rusnak1-1/+1
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 Hipple1-36/+0
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 modulesydlr1-8/+3
The previous way of detecting core modules failed to filter "if" and possibly other core modules.
2020-03-13nix-generate-from-cpan: remove unkown licenseydlr1-1/+1
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.