Commit graph

643 commits

Author SHA1 Message Date
github-actions[bot] 3a93e7e23e
Merge master into haskell-updates 2022-02-26 00:09:51 +00:00
Bruno BELANYI 75e1bb15fa vim/update.py: make '--add' option work 2022-02-25 11:54:07 +01:00
AndersonTorres 3f19fc37a3 Move misc/vim-plugins to applications/editors/vim/plugins 2022-02-24 20:26:07 -03:00
github-actions[bot] befe838e87
Merge master into haskell-updates 2022-02-24 00:09:57 +00:00
Jan Tojnar 2427ba619c
Merge pull request #161260 from jtojnar/gnome-update-bump
gnome.updateScript: Various improvements
2022-02-23 21:17:45 +01:00
Stig 28c4ea1115
Merge pull request #152162 from Artturin/oldaliascheckscript
maintainers/scripts/remove-old-aliases.py: script to remove aliases older than $date
2022-02-23 10:28:55 +01:00
github-actions[bot] eb29acff14
Merge master into haskell-updates 2022-02-22 00:10:07 +00:00
Jan Tojnar 5b8320d446 gnome.updateScript: Use experimental support for custom commit messages 2022-02-21 19:12:35 +01:00
Jan Tojnar 3cce255fc1 maintainers/scripts/update.nix: Add experimental support for customizing commit message 2022-02-21 19:12:35 +01:00
Artturin 0db4ecb8af maintainers/scripts/remove-old-aliases.py: script to remove old aliases
usage
'./maintainers/scripts/remove-old-aliases.py --year 2018 --file ./pkgs/top-level/aliases.nix'
first the matched lines are converted to throws with the comment
'Converted to throw $CURRENT_DATE'

then the throws older than the passed date are removed.
2022-02-21 08:40:39 +02:00
Sandro Jäckel b7da6c7da7
stdenv, dep-licenses.sh: do not skip handling of other exit traps
See https://github.com/akinomyoga/ble.sh/issues/179
2022-02-20 16:27:24 +01:00
sternenseemann b5489b75ee haskellPackages: Stackage LTS 18.25 -> Stackage Nightly 2022-02-07 2022-02-18 18:24:22 +01:00
Jan Tojnar 30dbdffcb5 maintainers/scripts/update.nix: Fix deduplication for unstableGitUpdater
Some updaters like `unstableGitUpdater` rely solely `UPDATE_NIX_ATTR_PATH`
environment variable to find out package attribute so they all have
the same `passthru.updateScript`. This means we cannot rely
on that attribute to filter out aliased packages because it would
consider all packages using `unstableGitUpdater` the same.

We need to use different criterion to distinguish them. `meta.position`
is a reasonable candidate but we cannot always utilize it since
it might not be available or it might be shared among multiple packages
(e.g. when using custom mkDerivation wrapper).

Combination of the two attributes should distinguish most cases.

Fixes: https://github.com/NixOS/nixpkgs/issues/112583
2022-02-17 12:30:27 +01:00
Matthieu Coudron db693baf19 vim/update.py: accept github token as argument
I find it more practical (can run update.py --github-token=$(pass gihtub-token)" rather than putting token in ENV). Also makes it more discoverable. I introduced a FetchConfig variable to pass editor agnostic configuration.
2022-02-17 12:19:45 +01:00
Matthieu Coudron 9d9b5b321e vim/update.py: add dummy nixpkgs_repo to shutdown pyright warnings 2022-02-17 11:51:16 +01:00
Lily Foster b6718ec0aa pluginupdate.py: fix regression with plugin line splitting
Before 46c68ad both "@" and " as " could be used in the same line like
the following:

    vimwiki/vimwiki@dev as vimwiki-dev

After 46c68ad this gives an error due to the split URI still erroneously
including the " as [name]" at the end, due to splitting from the wrong
variable.
2022-01-21 14:18:21 +01:00
Matthieu Coudron 4f0cb8a071 update.py: mention GITHUB_API_TOKEN in the help 2022-01-20 22:45:42 +01:00
Matthieu Coudron 46c68ad418 update.py: support remotes other than github
right now we can only refer to repositories hosted on github.
This allows to give random git repo uris like for instance:
https://git.sr.ht/~whynothugo/lsp_lines.nvim
2022-01-20 22:45:42 +01:00
Dr Perceptron 539f55df44
pluginupdate.py: make experimental feature nix-command explicit 2022-01-08 18:58:15 +11:00
Matthieu Coudron 7a30a844c6 pluginupdate.py: support comments
when maintaining out of tree plugins, it makes it easier to swap/comment on specific plugins
2021-12-22 00:33:12 +01:00
github-actions[bot] eec551fc15
Merge master into haskell-updates 2021-12-18 00:07:57 +00:00
Victor Engmark de125e2333
maintainers/scripts: Lint check-maintainer-github-handles.sh (#147424) 2021-12-17 23:45:48 +02:00
sternenseemann 90a8618c03 maintainers/scripts/test-configuration.nix: improve overlay call
configuration-nix.nix uses builtins.intersectAttrs to not any overrides
for packages not present in `super` (presumably for use outside of
nixpkgs?). To accomodate it, we pass an attribute set with every
attribute of haskellPackages, but set to `null` as `super`, and — while
we're at it — a fix point as `self`.
2021-12-15 17:23:04 +01:00
sternenseemann ca91080b21 maintainers/scripts/test-configurations.nix: skip binary GHCs
While being able to test them is neat (on x86_64-linux they work very
well, actually), we usually don't want to do this, since the set is
only (recommended to be) used to bootstrap GHC. Consequently there is
almost no binary cache and testing them mostly leads to unenlightening
and seemingly endless compilation.
2021-12-15 17:23:04 +01:00
sternenseemann 65de104e6c maintainers/scripts/test-configuration.nix: warn about broken pkgs
The warnings help when removing the broken flags when all packages turn
out to build and could also be helpful when investigating failures.
2021-12-15 17:23:04 +01:00
sternenseemann 7e9d55f0c4 maintainers/scripts: test for haskell configuration overlays
The added nix expression allows maintainers to check for regressions in
the configuration overlays employed by haskellPackages and friends. The
reasoning behind this is that, if we add an override for something, it
should also build. To test this fact, we extract all attributes touched
by a configuration and obtain all relevant derivations corresponding to
it which can then be thrown into nix-build --keep-going.

I've been using this expression to verify configuration-ghc-9.2.x.nix
for a week or so which works quite well. The amount of stale overrides
in other configuration makes it a bit more painful for other use cases
at the moment.
2021-12-14 02:25:02 +01:00
oxalica aad1bda6f3
scripts/pluginupdate.py: use HEAD as default branch
Thus we always use the default branch. No need to special handle of `master`,
`main`, `trunk` and etc.
2021-12-07 18:50:38 +08:00
github-actions[bot] a1d98b162f
Merge master into staging-next 2021-11-23 18:01:10 +00:00
Alexei Robyn b8173c4a0e luaPackages.moonscript: Correct package version to dev-1
The "0.5.0-1" rockspec on luarocks has a bug, resulting in it pulling
the current git master version, which is what we have effectively been
using.

Given that 0.5.0-1 is the latest release, is 6 years old, and that there
have been some bug fixes since then, we do actually want to be using the
git master version, but we also want to be using the correct rockspec
(particularly as alt-getopt has been replaced by argparse in the `moon`
binary).
2021-11-23 18:28:13 +01:00
Victor Engmark cd838da194 vanity: Indent with spaces part 2
More risky since it affects the inside of strings.
2021-11-18 10:53:29 +13:00
Victor Engmark 90dbec47b7 vanity: Indent with spaces
Some literal tabs within strings should probably be spaces `\t`, but
I'm not familiar enough to make that call.
2021-11-14 16:04:46 +13:00
figsoda 5aaa5f5e75 pluginupdate.py: fix compatibility with nix 2.4 2021-11-13 17:33:43 +01:00
Robert Hensing e04cc18f18 find-tarballs.nix: Avoid all passthru attrs
Avoiding passthru itself was the right direction, but not a
complete solution. Passthru attributes typically do not contain
dependencies, but rather extra paths that are not relevant to
the build itself.

Whether we want to include all (passthru) test dependencies this
way can be debated, but removing them makes this expression more
robust.
2021-11-04 16:00:32 +01:00
Jan Tojnar a20a4af62a maintainers/scripts/update.nix: Support committing with nix-update-script
When updating a package using nix-update-script with `--argstr commit true`,
update.nix would not detect the changes because nix-update would stage them
and `git diff` would be empty.

We now detect both staged and unstaged changes to handle this use case.
2021-10-31 11:00:37 +01:00
Matthieu Coudron 253af9151f luaPackages: update
- luarocks-nix: bumped to pass args too, `package_X = callPackage ...`.
  It allows to remove the annoying `with self`.
  This new version disables tests (because broken) and now emits derivation
  with a callPackage in front.
- replaced X.override with lib.overrideLuarocks, it should be used
whenever buildInputs/extraVariables is changed since it impacts the
generated luarocks config.
Once structured attributes are in, it will be easier to have the
luarocks config generated by a hook and we probably will be able to
replace all overrideLuarocks by overrideAttrs.
2021-10-18 19:48:07 +02:00
Dennis Gosnell 25e3fb020f
Merge pull request #138772 from cdepillabout/add-link-to-hydra-build-report
haskell: add link to Hydra build report for haskell-updates branch to PR message
2021-09-29 15:20:18 +09:00
github-actions[bot] 2a1a484050
Merge master into haskell-updates 2021-09-28 00:06:32 +00:00
Gabriel Ebner 8278a4679b luaPackages.luv: 1.30.0-0 -> 1.42.0-0 2021-09-27 11:13:49 +02:00
sternenseemann 414d4ab627 Merge remote-tracking branch 'origin/master' into haskell-updates 2021-09-24 16:26:28 +02:00
Sergei Trofimovich 39e8ec2db6
maintainers/scripts/rebuild-amount.sh: report parallelism, add example, cleanup (#137695)
* maintainers/scripts/rebuild-amount.sh: report parallelism setting

This slightly helps discovering parallelism support.

* maintainers/scripts/rebuild-amount.sh: add basic example

It's not clear if script should be used against HEAD or HEAD^.
Let's have a copyable example.

* maintainers/scripts/rebuild-amount.sh: convert tabs to four spaces

One notable change is here-document conversion.
Before:

  <TAB>cat <<-FOO
  <TAB>...
  <TAB>FOO

After:

  <sp><sp><sp><sp>cat <<FOO
  <sp><sp><sp><sp>...
  FOO

Note seemingly misaligned 'FOO': '-FOO' understands leading tabs,
but not spaces.
2021-09-24 01:06:57 -07:00
Malte Brandy 7b54437362
maintainers/scripts/haskell/hydra-report.hs: Fix wording 2021-09-23 23:37:05 +02:00
Malte Brandy a63dd9b40a
maintainers/scripts/haskell/hydra-report: Let r-deps link show to list of r-deps 2021-09-22 13:13:10 +02:00
(cdep)illabout e2603c4db2
haskell: add link to Hydra build report for haskell-updates branch to PR message 2021-09-21 10:19:28 +09:00
(cdep)illabout 64511038ff
haskell: small improvements to script for merging haskell-updates PR 2021-09-20 09:55:22 +09:00
(cdep)illabout 5ecf510833
haskell: update script for merging haskell-updates PR to upload package versions to Hackage 2021-09-20 09:54:51 +09:00
Malte Brandy 77adbb9ce7
maintainers/scripts/haskell/hydra-report: Add traffic light 2021-09-18 19:41:05 +02:00
maralorn 4de9b2bfcb
Merge pull request #138048 from maralorn/r-deps
maintainers/scripts/haskell: Add r-deps information to build-report
2021-09-18 15:11:13 +02:00
Malte Brandy ed2b092333
maintainers/scripts/haskell: Add r-deps information to build-report 2021-09-18 12:52:30 +02:00
(cdep)illabout ecce26dd5a
haskell: Add a maintainer script for opening a new haskell-updates PR 2021-09-18 14:34:49 +09:00
Alyssa Ross c9ce275aa4
treewide: "does not exists" -> "does not exist"
I noticed this minor grammar mistake when running update.nix, and then
while grepping to find the source I noticed we had it a few times in
Nixpkgs.  Just as easy to fix treewide as it was to fix the one
occurrence I noticed.
2021-09-09 18:45:33 +00:00
Jan Tojnar 1e75936926
Merge pull request #130047 from NixOS/doc-manpage-role
doc: Add support for manpage references
2021-09-07 21:29:26 +02:00
Doron Behar 9dfbf8c0a5
Merge pull request #136453 from alerque/sile-0.11.0
sile: 0.10.5 -> 0.11.1
2021-09-07 13:07:03 +03:00
Caleb Maclennan 9d753f2704 lua-penlight: dev-1 → 1.11.0-1
Upstream is working on some major deprecations, being on a HEAD commit
will not be a good plan going forward.
Remove double `busted` in `checkInputs` - keep only 1.
2021-09-07 11:42:41 +03:00
José Luis Lafuente b891957a97 Allow to execute update script in CI environment
If the script is executed in a CI (like in github actions, with the
install-nix-action) it fails. This changes fixes that use case. In that
scenario, you should provide the --no-commit flag.
2021-09-03 12:35:12 +02:00
Matthieu Coudron e62a0eac8f buildLuarocksPackage: cleanup 2021-08-31 22:16:28 +02:00
Matthieu Coudron 6312bac408 luaPackages.ansicolors: remove because unmaintained since 2013
luarocks points at https://github.com/kikito/ansicolors.lua with a last
commit in 2013 while its upstream https://github.com/hoelzro/ansicolors
contains a 2017 commit. This last project mentions it's superseeded by
https://github.com/hoelzro/lua-term
2021-08-31 00:42:30 +02:00
Matthieu Coudron a2fd477970 lua: restore knownRockspec and lgi
- fix std._debug build
- fixed std-normalize
- pinned stdlib since the git version  causes issues with awesome

cleanup
2021-08-31 00:42:26 +02:00
Matthieu Coudron 24ac87c440 luaPackages.luadoc: remove since last update in 2013
no update in 7 years, link towards source doesn't work anymore https://luarocks.org/modules/luarocks/luadoc/3.0.1-1
2021-08-31 00:13:11 +02:00
Matthieu Coudron 404e5b1040 luaPackages.ltermbox: removed
official repo here https://github.com/LuaDist-testing/ltermbox but nothing is using it and it is outdated/unmaintained (2018)
and poses issue updating
2021-08-31 00:09:47 +02:00
Matthieu Coudron 15e5c92495 luaPackages: update 2021-08-31 00:07:28 +02:00
Matthieu Coudron 7292ed91df update-luarocks-packages: use the current nixpkgs
restore the behavior of the previous updater that was using the current revision of nixpkgs instead of an outer one
2021-08-29 19:39:42 +02:00
Matthieu Coudron 7344a0e763 update.py: fix vim's updater script
recent updates to luarocks updater had broken the vim plugin update script
2021-08-14 00:08:19 +02:00
Matthieu Coudron fadfb4715b update-luarocks-package: fix issue with cache
Cache was not initialized properly
2021-08-13 00:08:44 +02:00
Matthieu Coudron 8ddad244ea update-luarocks-packages: use pluginupdate.py
Cleans up the common interface between the updaters.
Restores the ability to regen the lua packages in parallel.
2021-08-12 01:14:58 +02:00
Mario Rodas 85fe192e57 maintainers/scripts/update-ruby-packages: force platform-independent bundler lock
Since Bundler 2+, the lock command generated platform-dependent
Gemfile.locks, which breaks when nix has to build gems from source,
because the gemset generated is tied to the platform which generated it.
2021-08-09 18:00:00 -05:00
Matthieu Coudron b02c265190 luaPackages: update
Several updates
2021-08-09 21:38:32 +02:00
Matthieu Coudron 560a4e4e08 update-luarocks-packages: use pluginupdate.py
Trying to reuse the update scripts used by kakoune/vim to provide the
user with an unified convergence. Some stuff doesn't work yet (parallel
download, caching) but I (anyone else welcome to try too) will improve
it in other PRs.
2021-08-09 21:37:56 +02:00
Matthieu Coudron 06684792fb vimPlugins.plenary: init from lua package
This commit shows how to convert luarocks packages into (neo)vim ones.
The advantage for neovim lua plugins to register their rockspec (aka
package definition) is that the plugin can express its dependencies and
a few metadata through it.
2021-08-09 21:23:29 +02:00
Malte Brandy ce28b01ea3 maintainers/haskell/package-list: Only read one line from password-cmd 2021-07-31 13:34:20 +02:00
Matthieu Coudron a2a2bb32fb lua51Packages.plenary-nvim: init
there is no version yet
2021-07-30 00:32:16 +02:00
Matthieu Coudron 594a143e0e lua: normalize package name 2021-07-30 00:32:15 +02:00
sternenseemann 19a763458d maintainers/haskell/package-list: minor fixes to documentation
Co-authored-by: Manuel Bärenz <programming@manuelbaerenz.de>
2021-07-26 17:35:40 +02:00
Malte Brandy 264e63477d
pkgs.haskell.package-list: init
This commit introduces a maintainer script to upload our current list of
haskell-packages to hackage.
2021-07-22 23:17:37 +02:00
Joe Hermaszewski d46e72d043
maintainers/scripts/haskell: Better env clearing while regenerating 2021-07-21 12:41:24 +08:00
Eelco Dolstra c48be3c17d copy-tarballs.pl: Handle SRI hashes
This should fix

  Jul 20 07:16:12 bastion mirror-tarballs-start[21663]: Use of uninitialized value $algo in concatenation (.) or string at ./maintainers/scripts/copy-tarballs.pl line 80.
  Jul 20 07:16:12 bastion mirror-tarballs-start[21663]: Use of uninitialized value in subroutine entry at ./maintainers/scripts/copy-tarballs.pl line 185.
  Jul 20 07:16:13 bastion mirror-tarballs-start[21663]: error: unknown hash algorithm '' at ./maintainers/scripts/copy-tarballs.pl line 185.
2021-07-20 14:50:56 +02:00
(cdep)illabout ea2660f8d2
haskell-updates: make sure the transitive-broken-packges are sorted using LC_ALL=C
This makes sure that the output list of transitive broken packages will
always be ordered the same regardless of the environment you are
running from.
2021-07-17 11:46:57 +09:00
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