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
Nick Hu
5d92cf5f23
Merge pull request #78143 from mtreca/master
...
pam_gnupg: init at 0.1
2020-09-13 11:44:01 +01:00
Maxime Tréca
d9d3013117
pam_gnupg: init at 0.1
...
Add the pam_gnupg module that unlocks gnupg keys on login.
2020-09-13 10:46:14 +02:00
Damien Cassou
607f5a6755
Merge pull request #84246 from lostnet/couchdbpr
...
couchdb: add support for version 3.0.0
2020-09-11 17:47:47 +02:00
Will Young
0ef1be0aa1
couchdb: add support for version 3.1.0
2020-09-11 14:03:16 +02:00
ajs124
d5d6bd7f08
Merge pull request #97541 from Sohalt/mpdscribble-0.23
...
mpdscribble: 0.22 -> 0.23
2020-09-10 20:40:17 +02:00
Ismaël Bouya
213623e291
nagios: fix build
...
The compiler complains about dl* function missing, this commit adds the
necessary flag to pass to gcc to make it build correctly
2020-09-10 15:37:13 +02:00
sohalt
80f10fd1c3
maintainers: add sohalt
2020-09-10 14:52:36 +02:00
TANIGUCHI Kohei
8a6f8043d2
maintainers: add cohei
2020-09-10 14:56:32 +09:00
Maximilian Bosch
56708c3bf3
Merge pull request #97555 from badmutex/badi/maintainers-update
...
maintainers: updates for badi/badmutex
2020-09-09 23:03:52 +02:00
Badi Abdul-Wahid
a25396b58c
maintainers: badi -> badmutex
2020-09-09 10:45:08 -05:00
Domen Kožar
309d47a21b
Merge pull request #97514 from fgaz/maintainers-build-fix
...
maintainers/build: skip packages without meta
2020-09-09 11:47:43 +02: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
Tiago Castro
d83080f370
maintainers: add tiagolobocastro
2020-09-08 17:22:06 -07:00
Mario Rodas
ee222ce046
Merge pull request #88915 from bsima/shen
...
shen-sbcl: init at 3.0.3
2020-09-07 21:34:07 -05:00
Super Bo
2f5479d747
maintainers: add superbo
2020-09-08 08:22:50 +07:00
Maciej Krüger
4689b34d4f
teams: add cinnamon team
2020-09-07 23:46:59 +02:00
Mario Rodas
18bfc49f53
Merge pull request #97054 from dali99/add_vcsi
...
vsci: init at 7.0.12
2020-09-06 07:49:04 -05:00
Gabriel Ebner
955fe4d67b
Merge pull request #96688 from j0hax/octoprint-dashboard
2020-09-06 13:35:38 +02:00
Johannes Arnold
e6f4f3a388
maintainers: add j0hax
2020-09-05 11:39:31 +02:00
Daniel Olsen
5d255c0660
maintainers: add dandellion
2020-09-04 00:55:05 +02:00
Joël Perras
80f1cc1e83
maintainers: add jperras
2020-09-03 12:32:43 -07:00
Daniël de Kok
f20daaa85c
Merge pull request #96282 from rople380/master
...
godu: init at 1.3.0
2020-09-02 10:36:25 +02:00
rople380
8511890fe0
maintainers: add rople380
2020-09-02 08:11:18 +02:00
kfollesdal
ca9a8ff6c2
maintainers: add kfollesdal
2020-08-31 13:05:09 -07:00
Bruno Bigras
215ff41134
luaPackages.lua-resty-openidc: init at 1.7.2-1
2020-08-30 03:11:31 -04:00
Daniël de Kok
d6d64dee97
Merge pull request #96576 from SuperSandro2000/rustscan
...
rustscan: init at 1.8.0
2020-08-29 19:03:42 +02:00
Lassulus
e021b8eea9
Merge pull request #96164 from fooker/master
...
Init cargo-embed and cargo-flash at 0.8.0
2020-08-29 13:51:07 +02:00
Sandro Jäckel
0fcebc338d
maintainers: add SuperSandro2000
2020-08-29 13:35:30 +02:00
Samuel Dionne-Riel
000bb5ee45
Merge pull request #94416 from sarcasticadmin/sa/adding-sd-mux-ctrl
...
sd-mux-ctrl: init at 2020-02-17
2020-08-28 21:06:37 -04:00
Simonas Kazlauskas
a8bd5c1dc4
odafileconverter: init at 21.7.0.0 ( #95392 )
2020-08-28 22:13:51 +02:00
Hugo Reeves
2aa20776bc
Update maintainer details for hugoreeves
2020-08-28 11:00:41 +12:00
Vincent Bernat
019c72c12e
maintainers: add vincentbernat
2020-08-27 20:02:30 +02:00
Lassulus
12baef56e4
Merge pull request #96127 from hmenke/shadowsocks
...
shadowsocks service: support plugins
2020-08-26 16:49:55 +02:00
Lassulus
bd37bc58f9
Merge pull request #96253 from ImExtends/electronplayer
...
Electron player: init at 2.0.8
2020-08-26 12:08:55 +02:00
ImExtends
62f394c31c
adding extends to maintainer list
2020-08-26 11:26:53 +02:00
Steve Purcell
61f639c1ff
maintainers: add purcell ( #96329 )
2020-08-25 23:35:47 -04:00
Henri Menke
ef6c9fbd6b
maintainers: add hmenke
2020-08-26 14:02:15 +12:00
Dustin Frisch
61600ea577
maintainers: add fooker
2020-08-24 13:01:48 +02:00
Lassulus
e23ed2f21c
Merge pull request #87256 from jdbaldry/master
...
vpn-slice: init at 0.14
2020-08-24 12:12:50 +02:00