Skip to content

Commit 6aed25a

Browse files
committed
Remove nixpkgs override and the lib we no longer use
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
1 parent b5d54c2 commit 6aed25a

File tree

2 files changed

+11
-169
lines changed

2 files changed

+11
-169
lines changed

.circleci/config.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -596,15 +596,12 @@ jobs:
596596
buildSteps:
597597
- "run":
598598
name: "Unit Test"
599-
command: |
600-
source .circleci/lib.sh
601-
602-
# Translate the nixpkgs selection into a flake reference we
603-
# can use to override the default nixpkgs input.
604-
NIXPKGS=$(nixpkgs_flake_reference <<parameters.nixpkgs>>)
605-
599+
environment:
600+
# Once dependencies are built, we can allow some more concurrency for our own
601+
# test suite.
602+
UNITTEST_CORES: "8"
603+
command:
606604
nix run \
607-
--override-input nixpkgs "$NIXPKGS" \
608605
.#<<parameters.pythonVersion>>-unittest -- \
609606
--jobs $UNITTEST_CORES \
610607
allmydata
@@ -766,16 +763,6 @@ commands:
766763
type: "steps"
767764

768765
steps:
769-
- "run":
770-
name: "Install Basic Dependencies"
771-
command: |
772-
# Get some build environment dependencies and let them float on a
773-
# certain release branch. These aren't involved in the actual
774-
# package build (only in CI environment setup) so the fact that
775-
# they float shouldn't hurt reproducibility.
776-
NIXPKGS="nixpkgs/nixos-24.11"
777-
nix profile install $NIXPKGS#bash $NIXPKGS#jp
778-
779766
- "checkout"
780767

781768
- "run":
@@ -788,14 +775,17 @@ commands:
788775
789776
- "run":
790777
name: "Build Package"
778+
environment:
779+
# CircleCI build environment looks like it has a zillion and a half cores.
780+
# Don't let Nix autodetect this high core count because it blows up memory
781+
# usage and fails the test run. Pick a number of cores that suits the build
782+
# environment we're paying for (the free one!).
783+
DEPENDENCY_CORES: "3"
791784
command: |
792-
source .circleci/lib.sh
793-
NIXPKGS=$(nixpkgs_flake_reference <<parameters.nixpkgs>>)
794785
nix build \
795786
--verbose \
796787
--print-build-logs \
797788
--cores "$DEPENDENCY_CORES" \
798-
--override-input nixpkgs "$NIXPKGS" \
799789
.#<<parameters.pythonVersion>>-tahoe-lafs
800790
801791
- steps: "<<parameters.buildSteps>>"

.circleci/lib.sh

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)