hydra/src/script
Maximilian Bosch e499509595
Switch to new Nix bindings, update Nix for that
Implements support for Nix's new Perl bindings[1]. The current state
basically does `openStore()`, but always uses `auto` and doesn't support
stores at other URIs.

Even though the stores are cached inside the Perl implementation, I
decided to instantiate those once in the Nix helper module. That way
store openings aren't cluttered across the entire codebase. Also, there
are two stores used later on - MACHINE_LOCAL_STORE for `auto`,
BINARY_CACHE_STORE for the one from `store_uri` in `hydra.conf` - and
using consistent names should make the intent clearer then.

This doesn't contain any behavioral changes, i.e. the build product
availability issue from #1352 isn't fixed. This patch only contains the
migration to the new API.

[1] https://github.com/NixOS/nix/pull/9863
2024-02-12 18:50:56 +01:00
..
hydra-backfill-ids perlcritic: use strict, use warnings 2021-09-06 22:13:33 -04:00
hydra-create-user hydra-create-user: Warn that creating users with a plaintext password is deprecated 2022-01-21 12:56:15 -05:00
hydra-dev-server perlcritic: use strict, use warnings 2021-09-06 22:13:33 -04:00
hydra-eval-jobset Switch to new Nix bindings, update Nix for that 2024-02-12 18:50:56 +01:00
hydra-init File::Slurp -> File::Slurper 2021-09-06 22:13:33 -04:00
hydra-notify LDAP support: include BC support for the YAML based loading 2022-02-11 10:49:38 -05:00
hydra-s3-backup-collect-garbage LDAP support: include BC support for the YAML based loading 2022-02-11 10:49:38 -05:00
hydra-send-stats LDAP support: include BC support for the YAML based loading 2022-02-11 10:49:38 -05:00
hydra-server perlcritic: use strict, use warnings 2021-09-06 22:13:33 -04:00
hydra-update-gc-roots Switch to new Nix bindings, update Nix for that 2024-02-12 18:50:56 +01:00
Makefile.am Remove hydra-eval-guile-jobs 2020-02-20 09:58:12 +01:00
nix-prefetch-bzr git-export -> source 2017-12-25 14:31:30 +01:00
nix-prefetch-git evalSettings deprecated, submodule fix 2018-10-03 00:45:42 -04:00
nix-prefetch-hg Doh 2017-12-25 15:02:17 +01:00