Skip to content

Commit

Permalink
Add Nix 2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rickynils committed Apr 26, 2022
1 parent a10962f commit df55011
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-10.15]
nix_version:
- 2.8.0
- 2.7.0
- 2.6.1
- 2.6.0
Expand Down Expand Up @@ -76,6 +77,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-10.15]
nix_version:
- 2.8.0
- 2.7.0
- 2.6.1
- 2.6.0
Expand All @@ -88,6 +90,8 @@ jobs:
- 2.3.7
- 2.2.2
include:
- nix_version: 2.8.0
nix_conf: experimental-features = nix-command flakes
- nix_version: 2.7.0
nix_conf: experimental-features = nix-command flakes
- nix_version: 2.6.1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
### Using Nix flakes
To be able to use Nix flakes you need to specify a version of Nix that supports
it (the default Nix version, 2.7.0, works fine), and enable the flakes
it (the default Nix version, 2.8.0, works fine), and enable the flakes
functionality in the nix configuration:
```yaml
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:

nix_version:
required: true
default: "2.7.0"
default: "2.8.0"
description: |
The version of Nix that should be installed
Expand Down
18 changes: 17 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs-nix-2_8_0.url = "nixpkgs/b57126a16e9a70fc763b517ad45bf5f16f9e4dab";
nixpkgs-nix-2_7_0.url = "nixpkgs/e3a73aed432da016f57230ac977cf515525e6cc5";
nixpkgs-nix-2_6_1.url = "nixpkgs/a4a3ef1016e6dddda8ebd3bde232ba5102a406e7";
nixpkgs-nix-2_6_0.url = "nixpkgs/8ea208739449a10d5deee5cea0f229ac3a65cfb6";
Expand All @@ -24,6 +25,7 @@
outputs = {
self,
flake-utils,
nixpkgs-nix-2_8_0,
nixpkgs-nix-2_7_0,
nixpkgs-nix-2_6_1,
nixpkgs-nix-2_6_0,
Expand All @@ -43,14 +45,14 @@

let

inherit (nixpkgs-nix-2_7_0) lib;
inherit (nixpkgs-nix-2_8_0) lib;

preferRemoteBuild = drv: drv.overrideAttrs (_: {
preferLocalBuild = false;
allowSubstitutes = true;
});

pkgs = import nixpkgs-nix-2_7_0 {
pkgs = import nixpkgs-nix-2_8_0 {
inherit system;
overlays = [
(self: super: super.prefer-remote-fetch self super)
Expand All @@ -74,7 +76,8 @@
nixVersions = system: lib.listToAttrs (map (nix: lib.nameValuePair
nix.version nix
) (
[ nixpkgs-nix-2_7_0.legacyPackages.${system}.nix
[ nixpkgs-nix-2_8_0.legacyPackages.${system}.nix
nixpkgs-nix-2_7_0.legacyPackages.${system}.nix
nixpkgs-nix-2_6_1.legacyPackages.${system}.nix
nixpkgs-nix-2_6_0.legacyPackages.${system}.nix
nixpkgs-nix-2_5_1.legacyPackages.${system}.nix
Expand Down

0 comments on commit df55011

Please sign in to comment.