Skip to content

Commit

Permalink
Bump to nixos-21.05
Browse files Browse the repository at this point in the history
Enables building on aarch64
  • Loading branch information
ElvishJerricco committed Aug 11, 2021
1 parent a456f90 commit b71bd08
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs ? import ./dep/ci/nixos-20.03 {}
{ pkgs ? import ./dep/ci/nixos-21.05 {}
, ghc ? "ghc884"
}:

Expand Down
2 changes: 2 additions & 0 deletions dep/ci/nixos-21.05/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DO NOT HAND-EDIT THIS FILE
import (import ./thunk.nix)
8 changes: 8 additions & 0 deletions dep/ci/nixos-21.05/github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"owner": "NixOS",
"repo": "nixpkgs",
"branch": "nixos-21.05",
"private": false,
"rev": "2d6ab6c6b92f7aaf8bc53baba9754b9bfdce56f2",
"sha256": "1aafqly1mcqxh0r15mrlsrs4znldhm7cizsmfp3d25lqssay6gjd"
}
9 changes: 9 additions & 0 deletions dep/ci/nixos-21.05/thunk.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# DO NOT HAND-EDIT THIS FILE
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
if !fetchSubmodules && !private then builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
} else (import <nixpkgs> {}).fetchFromGitHub {
inherit owner repo rev sha256 fetchSubmodules private;
};
json = builtins.fromJSON (builtins.readFile ./github.json);
in fetch json

0 comments on commit b71bd08

Please sign in to comment.