Skip to content

Commit 0b52954

Browse files
committed
Ensure conformity to flake spec
1 parent d246eb2 commit 0b52954

File tree

7 files changed

+17
-22
lines changed

7 files changed

+17
-22
lines changed

.github/workflows/build-prod.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
- name: Get new version number
3838
run: echo "version_number=$(grep -E '^version' package.yaml | cut -d' ' -f2)" >> $GITHUB_ENV
3939
- name: Run pre-commit hooks
40-
run: nix build '.#runChecks'
40+
run: nix flake check
4141
- name: Build nix-bootstrap
4242
run: nix build
4343
- name: Check for vulnerabilities
44-
run: nix run .\#ciPackages.vulnix -- -C -w vulnerability-whitelist.toml result/
44+
run: nix run .\#ciPackages_vulnix -- -C -w vulnerability-whitelist.toml result/
4545
- name: Build release artefact
46-
run: nix run .\#ciPackages.buildBinaryCache
46+
run: nix run .\#ciPackages_buildBinaryCache
4747
- uses: actions/upload-artifact@v4
4848
with:
4949
name: "release-${{ env.version_number }}"

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
(git fetch --all && git diff "$(git describe --tags --abbrev=0)" -- package.yaml | grep version) ||
3232
(echo "You must bump the nix-bootstrap version number in package.yaml!" && exit 1)
3333
- name: Run pre-commit hooks
34-
run: nix build '.#runChecks'
34+
run: nix flake check
3535
- name: Build nix-bootstrap
3636
run: nix build
3737
- name: Check for vulnerabilities
38-
run: nix run .\#ciPackages.vulnix -- -C -w vulnerability-whitelist.toml result/
38+
run: nix run .\#ciPackages_vulnix -- -C -w vulnerability-whitelist.toml result/

.last-exported-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Last exported commit from parent repo: 7bde353a888c3babcd2738d8e7157fadf8878d25
1+
Last exported commit from parent repo: aaa042431723bcf4d4cd9f7d28cf59290a4350c7

flake.lock

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@
5959
};
6060
in {
6161
checks = {pre-commit-check = pre-commit-hooks.pureHooks;};
62-
defaultPackage = self.packages.${system}.default;
63-
devShell = self.devShells.${system}.default;
6462
devShells = {
6563
default = nixpkgs.mkShell ({
6664
buildInputs =
@@ -84,16 +82,8 @@
8482
default = nix-bootstrap;
8583
inherit nix-bootstrap;
8684
# To be used as tools in CI
87-
ciPackages = {
88-
inherit buildBinaryCache;
89-
inherit (nixpkgs) vulnix;
90-
};
91-
# runChecks is a hack required to allow checks to run on a single system
92-
# when using Import from Deviation (https://discourse.nixos.org/t/nix-flake-check-for-current-system-only/18366)
93-
# Building it is the single-system equivalent of running "nix flake check".
94-
runChecks = nixpkgs.runCommand "run-checks" {
95-
currentSystemChecks = builtins.attrValues self.checks.${system};
96-
} "echo $currentSystemChecks; touch $out";
85+
ciPackages_buildBinaryCache = buildBinaryCache;
86+
ciPackages_vulnix = nixpkgs.vulnix;
9787
};
9888
}
9989
);

nix-bootstrap.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cabal-version: 2.0
55
-- see: https://github.com/sol/hpack
66

77
name: nix-bootstrap
8-
version: 2.2.2.0
8+
version: 2.2.2.1
99
author: gchquser
1010
maintainer: 48051938+sd234678@users.noreply.github.com
1111
copyright: Crown Copyright

package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
name: nix-bootstrap
15-
version: 2.2.2.0
15+
version: 2.2.2.1
1616
author: gchquser
1717
maintainer: 48051938+sd234678@users.noreply.github.com
1818
copyright: Crown Copyright

0 commit comments

Comments
 (0)