-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stdenv: single make jobserver across multiple nix builds #143820
Closed
Closed
Changes from all commits
Commits
Show all changes
175 commits
Select commit
Hold shift + click to select a range
48a52a2
gnomeExtensions: auto-update
SebTM b512d4c
liquidprompt: add update script
romildo fa107c6
liquidprompt: update homepage and git repository
romildo 22277f6
liquidprompt: run preInstall and postInstall hooks
romildo b59a217
liquidprompt: 2.1.2 -> 2.2.0
romildo 0614789
gretl: 2024a -> 2024b
r-ryantm 1cfa988
last: 1543 -> 1544
r-ryantm 7fa095b
uni: 2.6.0 -> 2.7.0
r-ryantm cf7a6c1
atlantis: 0.27.3 -> 0.28.0
r-ryantm 8064d28
pkgs/servers: remove licenses.gpl2
Lurkki14 c6e5124
boogie: 3.1.5 -> 3.1.6
r-ryantm dbf2934
beekeeper-studio: 4.3.1 -> 4.3.4
r-ryantm 10178dc
freshrss: 1.23.1 -> 1.24.0
r-ryantm b94579e
kubecm: 0.28.0 -> 0.29.0
r-ryantm 451cdf2
kodiPackages.orftvthek: 0.12.9 -> 0.12.12
r-ryantm 05705d8
pcm: 202403 -> 202405
r-ryantm 2aca66c
wasmedge: 0.13.5 -> 0.14.0
r-ryantm 9175a1c
sentry-native: 0.7.2 -> 0.7.4
r-ryantm 01680da
gcsfuse: 2.0.1 -> 2.1.0
r-ryantm 9b7cb95
coreth: 0.13.3 -> 0.13.4
r-ryantm db44dc6
fooyin: 0.4.2 -> 0.4.3
r-ryantm c3931d8
jaq: 1.3.0 -> 1.4.0
r-ryantm a96a637
kubeseal: 0.26.2 -> 0.26.3
r-ryantm e071849
kyverno: 1.12.1 -> 1.12.2
r-ryantm 6b5518d
fheroes2: 1.0.13 -> 1.1.0
r-ryantm f0f15cc
oneshot: 2.0.2 -> 2.1.0
r-ryantm d27285e
cloudlog: 2.6.12 -> 2.6.13
r-ryantm be218c4
commitizen: 3.26.0 -> 3.27.0
r-ryantm 739d6f8
komikku: 1.46.0 -> 1.47.0
r-ryantm 37ca668
pm2: 5.3.1 -> 5.4.0
r-ryantm 17fb355
salt: 3007.0 -> 3007.1
r-ryantm bdd2f43
bun: 1.1.8 -> 1.1.9
r-ryantm ea8536a
_1password: 2.28.0 -> 2.29.0
r-ryantm 239c6f0
bazel-gazelle: 0.36.0 -> 0.37.0
r-ryantm 55ae611
seafile-shared: 9.0.5 -> 9.0.6
r-ryantm 593fa69
miniupnpc: switch to github source
trofi fe41047
python312Packages.homeassistant-stubs: 2024.5.4 -> 2024.5.5
mweinelt 5a3c6df
openjdk: 17.0.7+7 -> 17.0.11+9
Infinidoge 614dc61
openjfx: 17.0.6+3 -> 17.0.11-ga
Infinidoge 2fecaa3
blocky: 0.23 -> 0.24
r-ryantm dbad365
pinact: 0.1.3 -> 0.2.0
r-ryantm f8257f7
libuninameslist: 20230916 -> 20240524
r-ryantm e039bd6
oxker: 0.6.3 -> 0.6.4
r-ryantm c2b19fd
openxr-loader: 1.1.36 -> 1.1.37
r-ryantm 3d7e7cd
felix-fm: add update script
Scrumplex 8c168ae
felix-fm: 2.12.1 -> 2.13.0
Scrumplex 7b0d41e
tflint-plugins.tflint-ruleset-google: 0.28.0 -> 0.29.0
r-ryantm d493b9c
smtprelay: 1.10.0 -> 1.11.0
r-ryantm 15a8e38
floorp-unwrapped: 11.13.2 -> 11.13.3
r-ryantm 9097a7f
mpvScripts.mpvacious: 0.33 -> 0.34
r-ryantm 76ef308
arc-browser: 1.43.1-50198 -> 1.44.2-50412
DontEatOreo 3fa3594
formats: Set `preferLocalBuild` in `generate` builders
nbraud 6475c4c
formats.javaProperties: Don't set `!allowSubstitutes` in `generate` b…
nbraud 09b0b53
corretto: 17.0.8.8.1 -> 17.0.11.9.1
Infinidoge 23ad9b7
scala-cli: 1.3.1 -> 1.3.2
r-ryantm 092ca8d
gnome.gnome-remote-desktop: 46.1 -> 46.2
LeSuisse e1dd653
you-get: 0.4.1650 -> 0.4.1700
r-ryantm 04a08be
adguardhome: 0.107.48 -> 0.107.50
rhoriguchi f6ce3b4
libxml2: Test for pthread_create instead of pthread_join on FreeBSD
rhelmot 75829ee
libxml2: FreeBSD is no longer an impure platform
rhelmot 0275186
gum: 0.14.0 -> 0.14.1
MikaelFangel 9f7bdf8
openvas-scanner: 23.3.0 -> 23.3.1
r-ryantm a49ac84
jetbrains-jdk: 17.0.11-b1000.8 -> 17.0.11-b1207.24)
Infinidoge 3a74cef
python312Packages.foolscap: fix build
Moraxyc 555d0f0
python311Packages.clickgen: 2.2.2 -> 2.2.3
r-ryantm 4dfe48f
python312Packages.aioswitcher: 3.4.2 -> 3.4.3
fabaff 81b58cb
python312Packages.plugwise: 0.37.8 -> 0.37.9
fabaff 4c1e8e6
python312Packages.pyexploitdb: 0.2.18 -> 0.2.19
fabaff 92b5f65
python312Packages.teslajsonpy: 3.10.3 -> 3.11.0
fabaff 16ea2bf
smbmap: 1.10.2 -> 1.10.3
fabaff a93e6df
binutils: Add --undefined-version on lld 17+
rhelmot 3df2bf1
python311Packages.elasticsearch8: 8.13.1 -> 8.13.2
r-ryantm 85417ab
python311Packages.ytmusicapi: 1.7.1 -> 1.7.2
r-ryantm eebd3f3
pyright: 1.1.362 -> 1.1.364
r-ryantm f36397c
geos: disable failing test in geos_3_11
imincik 12009b1
klipper: 0.12.0-unstable-2024-05-16 -> 0.12.0-unstable-2024-05-25
r-ryantm 6fbe8ce
zoom-us: 6.0.2.4680 -> 6.0.10.5325
r-ryantm b2b8177
earthly: 0.8.11 -> 0.8.12
r-ryantm fc05537
tidal-hifi: 5.12.0 -> 5.13.0
r-ryantm 59a29ee
pachyderm: 2.9.5 -> 2.10.1
r-ryantm b995ae7
python311Packages.pytubefix, python312Packages.pytubefix: init at 5.6.3
youhaveme9 10a7ecf
juju: 3.3.5 -> 3.5.0
r-ryantm 3c7578c
firebase-tools: 13.10.0 -> 13.10.1
afh 7840e7b
Merge pull request #314454 from r-ryantm/auto-update/bazel-gazelle
matthiasbeyer 6820a7c
Merge pull request #314444 from r-ryantm/auto-update/_1password
matthiasbeyer 1266f38
Merge pull request #314423 from r-ryantm/auto-update/bun
matthiasbeyer 856dc62
Merge pull request #314401 from r-ryantm/auto-update/salt
matthiasbeyer 5f56373
Merge pull request #314311 from r-ryantm/auto-update/pm2
matthiasbeyer 2db9036
Merge pull request #314247 from r-ryantm/auto-update/komikku
matthiasbeyer bccb4c0
Merge pull request #314243 from r-ryantm/auto-update/commitizen
matthiasbeyer a65371c
Merge pull request #314181 from r-ryantm/auto-update/cloudlog
matthiasbeyer 9f3ac28
Merge pull request #314165 from r-ryantm/auto-update/oneshot
matthiasbeyer 557fd99
Merge pull request #314149 from r-ryantm/auto-update/kyverno
matthiasbeyer 0dd0486
Merge pull request #314147 from r-ryantm/auto-update/kubeseal
matthiasbeyer 63f6953
Merge pull request #314145 from r-ryantm/auto-update/jaq
matthiasbeyer 147d788
Merge pull request #314142 from r-ryantm/auto-update/fooyin
matthiasbeyer da94054
Merge pull request #314153 from r-ryantm/auto-update/fheroes2
matthiasbeyer 024e5e1
Merge pull request #314140 from r-ryantm/auto-update/coreth
matthiasbeyer a02ebc9
Merge pull request #314825 from r-ryantm/auto-update/juju
matthiasbeyer a58e226
Merge pull request #314818 from r-ryantm/auto-update/pachyderm
matthiasbeyer 6213b44
Merge pull request #314817 from r-ryantm/auto-update/tidal-hifi
matthiasbeyer 2f3edfc
Merge pull request #314801 from imincik/geos-3.11-exclude-failing-test
imincik 25357e1
Merge pull request #314816 from r-ryantm/auto-update/earthly
matthiasbeyer e764b51
Merge pull request #314802 from r-ryantm/auto-update/klipper
matthiasbeyer 928b443
Merge pull request #314667 from r-ryantm/auto-update/you-get
matthiasbeyer 403ba25
Merge pull request #314062 from r-ryantm/auto-update/sentry-native
matthiasbeyer 6c69685
Merge pull request #314085 from r-ryantm/auto-update/gcsfuse
matthiasbeyer d38c136
Merge pull request #314054 from r-ryantm/auto-update/wasmedge
matthiasbeyer d646337
Merge pull request #314019 from r-ryantm/auto-update/pcm
matthiasbeyer 7f25f18
Merge pull request #314013 from r-ryantm/auto-update/kubecm
matthiasbeyer b649801
Merge pull request #314000 from r-ryantm/auto-update/freshrss
matthiasbeyer ad1b9f0
Merge pull request #313986 from r-ryantm/auto-update/beekeeper-studio
matthiasbeyer fdecb36
Merge pull request #313985 from r-ryantm/auto-update/boogie
matthiasbeyer 5949027
Merge pull request #313877 from r-ryantm/auto-update/atlantis
matthiasbeyer 90a9800
Merge pull request #313845 from r-ryantm/auto-update/uni
matthiasbeyer 2832f80
Merge pull request #313768 from r-ryantm/auto-update/last
matthiasbeyer f7e2b6d
clash-verge-rev: 1.6.2 -> 1.6.3
r-ryantm 391f165
Merge pull request #313766 from r-ryantm/auto-update/gretl
matthiasbeyer 6d0a406
Merge pull request #314014 from r-ryantm/auto-update/kodiPackages.orf…
aanderse 61f9581
Merge pull request #314666 from LeSuisse/gnome-remote-desktop-46.2
jtojnar defedd8
Merge pull request #313931 from Lurkki14/gpl2-pkgs-servers
wegank 880dae4
Merge pull request #311480 from NixOS/geu_052024
SebTM b40e287
pyradio: 0.9.3.6 -> 0.9.3.7
r-ryantm fa871cb
python311Packages.django-modeltranslation: 0.18.13 -> 0.19.0
r-ryantm d3bb35e
Merge pull request #314797 from r-ryantm/auto-update/pyright
nixpkgs-merge-bot[bot] b089845
flashmq: 1.13.0 -> 1.13.1
r-ryantm 5457e7e
Merge #314653: formats: Set `preferLocalBuild` and `allowSubstitutes`
nbraud 637bdc3
wldash: init at 0.3.0 (#313098)
bbenno 1109e8d
kde-rounded-corners: 0.6.5 -> 0.6.6
r-ryantm 32f8f2d
jnv: 0.2.2 -> 0.2.3
r-ryantm 365db5c
Merge pull request #314510 from trofi/miniupnpc-reorder
NickCao d05525d
Merge pull request #314487 from r-ryantm/auto-update/seafile-shared
NickCao 752302b
Merge pull request #263246 from romildo/upd.liquidprompt
symphorien a0fb1d4
Merge pull request #314841 from r-ryantm/auto-update/clash-verge-rev
nixpkgs-merge-bot[bot] 57cd8b9
Merge pull request #314574 from r-ryantm/auto-update/blocky
NickCao 3d8fa98
Merge pull request #314545 from mweinelt/homeassistant-stubs-2024.5.5
NickCao 2310813
Merge pull request #314624 from r-ryantm/auto-update/tflint-plugins.t…
NickCao aa1f8e8
Merge pull request #314609 from Scrumplex/pkgs/felix-fm/2.13.0
NickCao d6d6812
Merge pull request #314608 from r-ryantm/auto-update/openxr-loader
NickCao 44734cf
Merge pull request #314595 from r-ryantm/auto-update/oxker
NickCao bd4530d
Merge pull request #314594 from r-ryantm/auto-update/libuninameslist
NickCao 558c4a5
Merge pull request #314593 from r-ryantm/auto-update/pinact
NickCao 7adcd86
Merge pull request #314672 from rhoriguchi/adguardhome
NickCao 78b6155
Merge pull request #314665 from r-ryantm/auto-update/scala-cli
NickCao 10300f7
Merge pull request #314650 from DontEatOreo/update-arc-browser
NickCao 6285d6a
Merge pull request #314648 from r-ryantm/auto-update/mpvScripts.mpvac…
NickCao 33e9de4
Merge pull request #314642 from r-ryantm/auto-update/floorp-unwrapped
NickCao a27d5b9
Merge pull request #314822 from Roshaen/pytubefix
RaghavSood 0e62a8c
Merge pull request #314626 from r-ryantm/auto-update/smtprelay
NickCao 86cb642
Merge pull request #314700 from r-ryantm/auto-update/openvas-scanner
NickCao 7a172e2
Merge pull request #314681 from MikaelFangel/update-gum
NickCao d527110
Merge pull request #314750 from r-ryantm/auto-update/python311Package…
NickCao 856c18b
Merge pull request #314785 from r-ryantm/auto-update/python311Package…
NickCao 5722918
Merge pull request #314759 from fabaff/smbmap-bump
NickCao 7a808e9
Merge pull request #314758 from fabaff/pyexploitdb-bump
NickCao eae371d
Merge pull request #314757 from fabaff/teslajsonpy-bump
NickCao b64fb68
Merge pull request #314755 from fabaff/aioswitcher-bump
NickCao e519f04
Merge pull request #314754 from fabaff/plugwise-bump
NickCao 5997f57
Merge pull request #314809 from r-ryantm/auto-update/zoom-us
NickCao fb89bbd
Merge pull request #314850 from r-ryantm/auto-update/kde-rounded-corners
NickCao e0df2dd
Merge pull request #314849 from r-ryantm/auto-update/jnv
NickCao 9832f75
Merge pull request #314847 from r-ryantm/auto-update/flashmq
NickCao 480f14b
Merge pull request #314846 from r-ryantm/auto-update/python311Package…
NickCao 12d0d3d
Merge pull request #314835 from afh/update-firebase-tools
NickCao 4615c9d
Merge pull request #314721 from Moraxyc/fix-foolscap
risicle bf40cc6
Merge pull request #313927 from wegank/openjdk-bump-split-4
thiagokokada 7780e51
Merge pull request #314381 from Infinidoge/bump-openjdk-jetbrains
thiagokokada d924b01
Merge pull request #309782 from r-ryantm/auto-update/python311Package…
dotlambda 0e883cd
Merge pull request #314781 from rhelmot/freebsd-minimal3/binutils2
Ericson2314 2c620de
Merge pull request #314675 from rhelmot/freebsd-minimal3/libxml2
Ericson2314 92416bb
python311Packages.snakemake: 8.11.4 -> 8.11.6
r-ryantm 54a5543
nix: remove myself from "code ownership" and 2.3 maintenance
RaitoBezarius 4e46348
stdenv: allow for jobservers across multiple nix builds
pennae ca25c94
nixos/nixos-jobserver: init
pennae bc1e28a
stdenv: move jobserver under /build-support/jobserver
RaitoBezarius File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
cfg = config.nixos.jobserver; | ||
tokenDir = "/run/nixos-jobserver"; | ||
tokenFile = "${tokenDir}/tokens"; | ||
in | ||
{ | ||
options = { | ||
nixos.jobserver = { | ||
enable = mkEnableOption "the global NixOS jobserver"; | ||
|
||
owner = mkOption { | ||
type = types.str; | ||
default = "root"; | ||
description = '' | ||
Owner of the jobserver token file. | ||
''; | ||
}; | ||
|
||
group = mkOption { | ||
type = types.str; | ||
default = "nixbld"; | ||
description = '' | ||
Group of the jobserver token file. | ||
''; | ||
}; | ||
|
||
tokens = mkOption { | ||
type = types.ints.unsigned; | ||
default = 0; | ||
description = '' | ||
Number of tokens to provide via the jobserver. Uses the number of CPUs in the | ||
system when set to 0. | ||
''; | ||
}; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
nix.sandboxPaths = [ "/build-support/jobserver=${tokenFile}?" ]; | ||
|
||
systemd.services.nixos-jobserver = { | ||
wantedBy = [ "multi-user.target" ]; | ||
|
||
path = [ pkgs.nixos-jobserver pkgs.util-linux ]; | ||
|
||
preStart = '' | ||
mkdir -p ${tokenDir} | ||
|
||
umask 0777 | ||
touch ${tokenFile} | ||
''; | ||
|
||
script = '' | ||
exec nixos-jobserver \ | ||
-t ${toString cfg.tokens} \ | ||
-u ${escapeShellArg cfg.owner} \ | ||
-g ${escapeShellArg cfg.group} \ | ||
${tokenFile} | ||
''; | ||
|
||
# we explicitly *do not* kill the jobserver. | ||
# doing so would cause all running builds to fail. | ||
# instead we want to make the jobserver unavailable to new builds, but allow | ||
# running builds to finish and the jobserver to exit once they're all done. | ||
# systemd *does not* want to allow this kind of thing, so we instruct it to | ||
# only kill the wrapper script. with the token file unmounted the jobserver | ||
# process will exit once all builds have finished. | ||
preStop = '' | ||
umount ${tokenFile} | ||
''; | ||
serviceConfig.KillMode = "process"; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.