Commit graph

517 commits

Author SHA1 Message Date
Jan Tojnar da95ab11b4 doc: Add helper for converting DocBook files to Markdown 2021-07-13 02:21:22 +02:00
Joe Hermaszewski df8f2736d5
maintainers/scripts/haskell: clear environment while regenerating
Also misc shellcheck fixes
2021-06-30 23:18:49 +08:00
Malte Brandy bf3a3b62e4
haskellPackages: switch from stackage-nightly to stackage-lts 18.0 2021-06-19 14:18:17 +02:00
sternenseemann be6de30ca4 maintainers/scripts/haskell: make commit messages more consistent
Make sure they are all prefixed with haskellPackages: except for
update-hackage.sh which changes the top-level attribute
all-cabal-hashes.
2021-06-06 18:53:56 +02:00
sternenseemann 1e7351550c maintainers/…/regenerate-hackage-packages.sh: overrideable hackage2nix
Allow setting the HACKAGE2NIX environment variable to change the
hackage2nix the script uses to an absolute path to a local build. Useful
to test local changes in a realistic environment.
2021-06-05 17:03:08 +02:00
Dennis Gosnell b76684aff7
Merge pull request #122719 from NixOS/haskell-updates
haskell: update package set
2021-05-19 10:52:35 +09:00
Matthieu Coudron 0a9e9c0965 pkgs/misc/vim-plugins/update.py: add logging
there was a 404 error, having basic logging makes it easier to troubleshoot
2021-05-17 00:40:25 +02:00
Malte Brandy cb6ec35052
maintainers/scripts/haskell/hydra-report.hs: Remove trailing dots
Some job names actually are not followed by a platform name and therefor don‘t have a dot after the name.
2021-05-16 20:20:57 +02:00
(cdep)illabout f75fe9394f
Merge remote-tracking branch 'origin/master' into haskell-updates 2021-05-16 16:56:34 +09:00
(cdep)illabout 4ac4ced470
hydra-report.hs: Change Maintainers back to being Maybe Text 2021-05-16 10:43:39 +09:00
(cdep)illabout 39d04243e2
hydra-report.hs: small formatting changes 2021-05-15 15:53:19 +09:00
Jonas Chevalier c6b62f2381
mkShell: introduce packages argument (#122180)
The distinction between the inputs doesn't really make sense in the
mkShell context.  Technically speaking, we should be using the
nativeBuildInputs most of the time.

So in order to make this function more beginner-friendly, add "packages"
as an attribute, that maps to nativeBuildInputs.

This commit also updates all the uses in nixpkgs.
2021-05-13 19:17:29 +02:00
Malte Brandy 49a014f3e9
maintainers/scripts/haskell/hydra-report.hs: Support HydraFailure statuscode 2021-05-11 16:04:22 +02:00
Malte Brandy 9a51c0704f
maintainers/scripts/haskell: Sort transitive broken case insensitive 2021-05-10 22:36:44 +02:00
Malte Brandy dd8a25528a
maintainers/scripts/haskell: Add mark-broken.sh 2021-05-10 22:36:44 +02:00
Malte Brandy 1da75e70f8
maintainers/scripts/haskell/hydra-report.hs: Add links to job and set names 2021-05-10 22:36:43 +02:00
maralorn 086180140d
maintainers/scripts/haskell/hydra-report.hs: Fix typo
Co-authored-by: Dennis Gosnell <cdep.illabout@gmail.com>
2021-05-10 22:36:43 +02:00
Malte Brandy 10d2ea64cd
maintainers/scripts/haskell/hydra-report.hs: Deal with more buildstatus codes 2021-05-10 22:36:43 +02:00
(cdep)illabout 461c374bda
maintainers/scripts/haskell/hydra-report.hs: change Build.buildstatus to Maybe Int
The buildstatus may be `null` from Hydra if the Build hasn't finished
running yet.
2021-05-10 22:36:43 +02:00
Malte Brandy df0572cf3a
maintainers/scripts/haskell/hydra-report.hs: Enable warnings and small refactoring 2021-05-10 22:36:43 +02:00
(cdep)illabout 277bb664de
maintainers/scripts/haskell/hydra-report.hs: Use only 2 queries to get report 2021-05-10 22:36:43 +02:00
Malte Brandy 912c7bd20d
maintainers/scripts/haskell/hydra-report.hs: init 2021-05-10 22:36:42 +02:00
Malte Brandy e60afba5d1
Merge branch 'master' into haskell-updates 2021-05-09 02:18:56 +02:00
Malte Brandy 66de11da71
maintainers/scripts/haskell/regenerate-hackage-packages.sh: Small improvents and encoding workaround 2021-05-09 01:01:33 +02:00
Maximilian Bosch c98bdda0ae
Merge pull request #122060 from Ma27/hydra-maintainer-fix
maintainers/check-hydra-by-maintainer: use `pkgs.hydra-check` from package set itself
2021-05-08 23:23:54 +02:00
Robert Schütz 876e7e2883 maintainers/build: enable cross builds 2021-05-08 10:19:20 -07:00
sternenseemann e37a0ebc85 Merge remote-tracking branch 'origin/master' into haskell-updates 2021-05-08 14:04:31 +02:00
Jan Tojnar 468cb5980b gnome: rename from gnome3
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
2021-05-08 09:47:42 +02:00
Malte Brandy cfdeaa13f2
maintainers/scripts/haskell/update-stackage.sh: Fix wrong variable 2021-05-07 23:58:18 +02:00
Malte Brandy 7f236bd4b2
hackage2nix: Split configuration, auto disable hydra builds
We split configuration-hackage2nix.yaml into multiple files.  We bump
cabal2nix-unstable to get support for multiple config files in
hackage2nix.

* The file main.yaml is only supposed to be edited by humans.
* The file stackage.yaml is only supposed to be updated by the
  update-stackage.sh
* The file broken.yaml can be edited by humans, but probably future
  helpers will want to insert broken packages into this file based on
  hydra reports.
* The file transitive-broken.yaml is newly introduced to be generated
  by regenerate-transitive-broken-packages.sh

regenerate-transitive-broken-packages.sh makes a nix query (in
transitive-broken-packages.nix) which evaluates all haskellPackages
once with and once without "allowBroken" this way it get's a list of
packages which are broken by some transitive dependency, but does not
disable packages which have eval errors not caused by a broken package.
2021-05-07 21:58:08 +02:00
Maximilian Bosch acb7b55d92
maintainers/check-hydra-by-maintainer: use pkgs.hydra-check from package set itself 2021-05-07 19:32:10 +02:00
Malte Brandy 2a11f1f5cc
Merge branch 'master' into haskell-updates 2021-05-07 15:03:54 +02:00
Jan Tojnar 416cd66e29
maintainers/scripts/update.nix: Ensure the worktree is clean
When an update script fails, it might still modify the source tree.
These changes would then be committed in the next update attempt.
Let’s make sure the worktree is clean before updating to avoid that.
2021-05-05 22:42:30 +02:00
Jan Tojnar d51a631a46
maintainers/scripts/update.nix: Add support for filtering pkgs by predicate
Arbitrary predicate is useful for updating decentralised package sets like GNOME.
2021-05-05 22:20:20 +02:00
Malte Brandy f37d5402bc
maintainers/scripts/haskell: Improve commit messages 2021-05-04 14:29:45 +02:00
sternenseemann 794bc5e9ed haskellPackages.cabal2nix-unstable: rename from cabal2nix-latest 2021-05-04 13:38:46 +02:00
sternenseemann e30cf42f0c haskellPackages.cabal2nix-latest: use unstable-YYYY-MM-DD format
This is the preferred format for things fetched from git or similar that
are not proper releases: https://nixos.org/manual/nixpkgs/stable/#sec-package-naming

Also we should think about making name and attribute name more
consistent: cabal2nix-latest -> cabal2nix-unstable
2021-05-04 13:38:46 +02:00
Malte Brandy 4dbda0125a
maintainers/scripts/haskell: Add --do-commit option 2021-05-03 22:58:51 +02:00
hyperfekt f3f84855e8
maintainers/scripts/haskell/regenerate-hackage-packages.sh: init
Introduces a script that can be used to update the Nix expressions for

the Haskell package set. In service of that, also

- introduces cabal2nix-latest, which pins the hackage2nix version used

- changes all-cabal-hashes to use fetchFromGitHub

- adds update-hackage.sh & update-cabal2nix-latest.sh & update-stackage.sh maintainer scripts
2021-05-01 21:55:18 +02:00
Matthieu Coudron 3eb8f4d15c
update.py: allow to disable autocommit (#119182) 2021-04-22 03:21:36 +02:00
Bruno Bigras d0a243c4ba luaPackages.lua-resty-openidc: 1.7.2-1 -> 1.7.4-1 2021-04-18 17:21:13 +02:00
Robert Helgesson 831e64bad4
Drop maintainership for some packages 2021-04-18 09:00:18 +02:00
Flakebi 04184cd64f
scripts.pluginupdate: write final newline
json.dump does not write any newline, so the final newline in the file
is missing.
2021-03-22 22:56:47 +01:00
Andrey Kuznetsov 164fc8c49a
vimPlugins: fix pluginupdate.py 2021-03-16 17:24:18 +00:00
Anderson Torres e3e59d4ab7
Merge pull request #108363 from Flakebi/kakoune
kakounePlugins: use vim’s update.py script to generate plugins
2021-03-14 15:01:42 -03:00
Flakebi 2123e325c9
vimPlugins: make update.py generic over editor
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-25 10:05:22 +01:00
Ben Siraphob e03c068af5 treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
Matthieu Coudron b20b9f98b8 luarocks-update-packages: pass "lib" in arguments 2021-01-23 00:39:01 +01:00
Matthieu Coudron e964e6e35d luaPackages.cassowary: add alerque as maintainer
it was added in the generated file, move it to the source of truth for
the generated files.
2021-01-22 22:47:26 +01:00
Pavol Rusnak 66dc9dbb59
nixos/modules: stdenv.lib -> lib 2021-01-17 21:40:51 +01:00
Alyssa Ross b7fee118ca
nix-generate-from-cpan: stdenv.lib -> lib in expr
7d20329 updated the implementation but not the expression.
2021-01-14 11:43:46 +00:00
Stig Palmquist f12ad54760 nix-generate-from-cpan: quote homepage, stdenv.lib -> lib 2021-01-10 16:13:57 +01:00
Sandro ab6dc6eb65
Merge pull request #101741 from SuperSandro2000/check-hydra
maintainer scripts: init check-hydra-by-maintainer.nix
2021-01-06 01:59:03 +01:00
Thomas Tuegel 3db04334e3
Revert "fetch-kde-qt.sh: get hashes from metadata"
This reverts commit 4b7d9dc868.

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-26 05:24:25 -06:00
Jan Tojnar c485a932d9
maintainers/scripts/update.nix: Do not traverse lists
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-12-16 10:14:59 +01:00
Benjamin Hipple ae1b8cce75
Merge pull request #94558 from bhipple/fix/lint
nixpkgs-lint: ignore user's overlays
2020-11-29 16:08:30 -05:00
Sandro Jäckel 67c2129b75
maintainers/scripts: remove sed script file, normalize name 2020-11-27 01:35:54 +01:00
Sandro Jäckel 3cac0987e1
maintainer scripts: init check-hydra-by-maintainer.nix 2020-11-26 23:31:43 +01:00
Sandro cf36a4fea8
maintainers scripts: Fix shebang
Fixes:
error: syntax error, unexpected $undefined, at (string):1:94
2020-10-25 22:47:18 +01:00
Benjamin Hipple f22881290a nixpkgs-lint: ignore user's overlays
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-08-02 10:56:22 -04:00
zowoq eca0b09849 maintainers/*: editorconfig fixes 2020-07-31 15:07:53 +10:00
Jan Tojnar 5b3fe9f776
update.nix: Allow passing overlays
Previously, we relied on NIX_PATH for passing overlays but with flakes, we should pass them explicitly.
2020-07-07 21:29:32 +02:00
Mitsuhiro Nakamura a1bea5278d
luaPackages.readline: init at 2.6-0 (#91854) 2020-07-01 17:58:50 +02:00
Daniël de Kok 842acd9000 xara: remove
Not updated since 2006:

https://en.wikipedia.org/wiki/Xara_Xtreme_LX

Marked broken in nixpkgs since 2016-02-27.
2020-06-25 07:55:01 +02:00
pablo1107 52c906147c luaPackages.ldbus: init at scm-0 2020-06-17 12:12:08 +02:00
Patrick Hilhorst e9acc776d8 maintainers/scripts: add update_redirected_urls to fix redirected urls using Repology data 2020-10-02 09:01:35 -07:00
Jan Tojnar 74c5472090
Merge pull request #98304 from jtojnar/updateScript-commit3
maintainers/scripts/update.nix: Add support for auto-commiting changes
2020-10-02 06:16:09 +02:00
Jan Tojnar 74a5bb4041
maintainers/scripts/update.nix: Clean up
- 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-20 21:22:04 +02:00
Jan Tojnar 71c246c785
maintainers/scripts/update.nix: Run update scripts from the worktree
`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-20 20:12:34 +02:00
Jan Tojnar 0c5ddf3358
maintainers/scripts/update.nix: run update script with UPDATE_NIX_ATTR_PATH
The environment variable will contain the attribute path the script is supposed to update.
2020-09-20 20:12:33 +02:00
Jan Tojnar c21a85c6a0
maintainers/scripts/update.nix: auto-detect attrPath 2020-09-20 20:11:46 +02:00
Jan Tojnar b351de0971
maintainers/scripts/update.nix: mention when there were no changes committed 2020-09-20 20:11:46 +02:00
Jan Tojnar b828285933
maintainers/scripts/update.nix: support filling in auto-commit attributes
We can determine all of them when attrPath is present so we might jsut as well do it.
2020-09-20 20:11:46 +02:00
Jan Tojnar 4a161ddb3b
maintainers/scripts/update.nix: support auto-committing by passing attrPath
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-20 20:11:46 +02:00
Jan Tojnar 01b9d5371c
maintainers/scripts/update.nix: switch to asyncio
This will make it cleaner and also better respect SIGTERM.
2020-09-20 20:11:45 +02:00
Jan Tojnar 17f89667b3
maintainers/scripts/update.nix: refactoring
Get rid of some globals, split main into smaller functions, rename some variables, add typehints.
2020-09-20 20:11:45 +02:00
Jan Tojnar 1efc042d92
maintainers/scripts/update.nix: Add support for auto-commiting changes
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-20 20:11:22 +02:00
Jan Tojnar 5adbeb13c5
update.nix: use ThreadPoolExecutor
Not sure why I chose ProcessPoolExecutor in the first place.
2020-09-18 20:52:07 +02:00
Erik Arvstedt be33b54672 maintainers/build: skip packages that don't evaluate 2020-09-14 21:17:13 -07:00
Francesco Gazzetta b4496d4095 maintainers/build: skip packages without meta
Some packages do not have a meta attribute, and made the script crash.
2020-09-09 09:54:03 +02:00
Bruno Bigras 215ff41134 luaPackages.lua-resty-openidc: init at 1.7.2-1 2020-08-30 03:11:31 -04:00
Doron Behar 039056386d
luaPackages.pulseaudio: remove (#94939)
It's not maintained any more by upstream (by @doronbehar) and it doesn't
build correctly with `buildLuarocksPackage` (see #89767).
2020-08-08 15:43:13 +02:00
Vladimír Čunát a44f91af27
lua packages: remove myself from some meta.maintainers
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-10 07:30:59 +02:00
Luka Blaskovic bd400bd006 lyaml: init at 6.2.5-1, update all generated packages 2020-06-06 18:45:57 +02:00
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