Commit graph

477 commits

Author SHA1 Message Date
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
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