Skip to content

Commit 59d4fab

Browse files
fricklerhandwerkErethon
authored andcommitted
ci: bump nixpkgs and use it everywhere
historically there was a split between sources for development and deployment. this had never been resolved, because up to some point in the past, bumping nixpkgs would result in nasty build failures. apparently these have been resolved. now that we keep nixpkgs at unstable, there's no acute reason to have two environments.
1 parent 162121e commit 59d4fab

File tree

8 files changed

+24
-124
lines changed

8 files changed

+24
-124
lines changed

.github/workflows/bump.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: cachix/install-nix-action@v29
2121
- run: |
22-
nix-shell default.nix -A ci --run "npins -d ./infra/npins update"
22+
nix-shell default.nix -A ci --run "npins update"
2323
- uses: actions/create-github-app-token@v1
2424
id: generate-token
2525
with:

default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ rec {
119119
manage = pkgs.writeScriptBin "manage" ''
120120
exec ${python3}/bin/python ${toString ./src/manage.py} $@
121121
'';
122-
deploymentSources = import ./infra/npins;
123122
in
124123
pkgs.mkShellNoCC {
125124
env = {
@@ -161,7 +160,7 @@ rec {
161160
pkgs.npins
162161
pkgs.hivemind
163162
pkgs.awscli
164-
(import deploymentSources.agenix { inherit pkgs; }).agenix
163+
(import sources.agenix { inherit pkgs; }).agenix
165164
] ++ pre-commit-check.enabledPackages;
166165

167166
shellHook = ''

infra/configuration.nix

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{ pkgs, lib, ... }:
22
let
3-
# Note: this might be surprising not to reuse the parent npins/ directory.
4-
# The rationale is that the staging environment's sources are decorrelated from the development's sources.
5-
# Sources here are managed on a different lifecycle and have different acceptance tests than the development.
6-
# Also, the focus in the staging environment is a secure deployment, which trumps over dirty hacks.
7-
sources = import ./npins;
3+
sources = import ../npins;
84
in
95
{
106
imports = [

infra/deploy.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ set -eo pipefail
66
DIR=$(git rev-parse --show-toplevel)
77
VERB=${1:-switch}
88
# make sure we're building with the version of Nixpkgs under our control
9-
# TODO: fix the build on the latest nixpkgs-unstable and use that one for deployment
10-
# export NIX_PATH=nixpkgs=$(nix-instantiate --eval -E '(import ./infra/npins).nixpkgs.outPath' | tr -d '"')
119
export NIX_PATH=nixpkgs=$(nix-instantiate --eval -A pkgs.path)
1210

1311
# Note: we could refactor the conditional here.

infra/npins/default.nix

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

infra/npins/sources.json

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

infra/shell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
sources ? import ../../npins,
2+
sources ? import ../npins,
33
system ? builtins.currentSystem,
44
pkgs ? import sources.nixpkgs {
55
config = { };

npins/sources.json

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
22
"pins": {
3+
"agenix": {
4+
"type": "Git",
5+
"repository": {
6+
"type": "GitHub",
7+
"owner": "ryantm",
8+
"repo": "agenix"
9+
},
10+
"branch": "main",
11+
"revision": "4835b1dc898959d8547a871ef484930675cb47f1",
12+
"url": "https://github.com/ryantm/agenix/archive/4835b1dc898959d8547a871ef484930675cb47f1.tar.gz",
13+
"hash": "0ngkhf7qamibhbl9z1dryzscd36y4fz1m1h6fb2z6fylw0b8029p"
14+
},
315
"gitignore": {
416
"type": "Git",
517
"repository": {
@@ -21,16 +33,16 @@
2133
"pre_releases": false,
2234
"version_upper_bound": null,
2335
"release_prefix": null,
24-
"version": "v2.0.3",
25-
"revision": "d6e17abb13729d8ace72f312a4b82130d8355233",
36+
"version": "v2.0.4",
37+
"revision": "b82cf843e47e575dd8c2ad8fee547d8e2c3bb87f",
2638
"url": null,
27-
"hash": "1dni9xpijx6risc0pfidqy3i9a898lnf357rypddd1rvkjan40a7"
39+
"hash": "1c4zm3b7ym01ijydiss4amd14mv5fbgp1n71vqjk4alc35jlnqy2"
2840
},
2941
"nixpkgs": {
3042
"type": "Channel",
3143
"name": "nixpkgs-unstable",
32-
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre683804.a1d92660c6b3/nixexprs.tar.xz",
33-
"hash": "0lzd1g9x7ihscdajc2g9f0jyykymw6r1lq2ir5g0shjzjf0jc5la"
44+
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-25.11pre814815.41da1e3ea8e2/nixexprs.tar.xz",
45+
"hash": "1hpd50fg4s7mg7a7rqs7j1a659qnf27f9j5s1fgi0dj7zhac002n"
3446
},
3547
"pre-commit-hooks": {
3648
"type": "Git",
@@ -40,9 +52,9 @@
4052
"repo": "pre-commit-hooks.nix"
4153
},
4254
"branch": "master",
43-
"revision": "4e743a6920eab45e8ba0fbe49dc459f1423a4b74",
44-
"url": "https://github.com/cachix/pre-commit-hooks.nix/archive/4e743a6920eab45e8ba0fbe49dc459f1423a4b74.tar.gz",
45-
"hash": "0fc69dsn5rhv2zb16c2bfgx84ja8cmn7d7j2mrw3n4m8y611x40g"
55+
"revision": "623c56286de5a3193aa38891a6991b28f9bab056",
56+
"url": "https://github.com/cachix/git-hooks.nix/archive/623c56286de5a3193aa38891a6991b28f9bab056.tar.gz",
57+
"hash": "1vlx0gshjlj45inn8w67m8dn43i4jvxfvpnnrzh26bsgx6a8hijr"
4658
}
4759
},
4860
"version": 3

0 commit comments

Comments
 (0)