Files
Hamish Mackenzie 4413b6a9b9 Bump nixpkgs pins, add 22.11 to CI (#1815)
* Bump nixpkgs pins, add 22.11 to CI

* Bump nixpkgs pins, add 22.11 to CI

* Bump nixpkgs pins

* Bump nixpkgs pins

* Remove references to old pkgconfig packages

* Bump nixpkgs

* Fixes for latest nixpkgs

* ifdLevel 1

* Bump nixpkgs pins

* Remove top level required jobs

* ifdLevel 2

* ifdLevel 3

* ifdLevel 1

* ifdLevel 0

* Bump nixpkgs used in default.nix

* Build ghc 9.4.4 not 9.4.3 in ci for R2211

* Just build ghc 8.10.7

* Just build ghc 8.10.7

* Recreate flake.lock

* Include newer ghc versions

* Skip ghc 9.4 until 9.0 is built

* ifdLevel 1

* ifdLevel 2

* Add ghc 9.4

* ifdLevel 1

* ifdLevel 2

* ifdLevel 3
2023-02-13 12:07:09 +13:00

33 lines
1.4 KiB
Nix

{...}@args:
let
pins = (__fromJSON (__readFile ./flake.lock)).nodes;
nixpkgsPin = pins.nixpkgs-2211.locked;
flakeCompatPin = pins.flake-compat.locked;
nixpkgsSrc =
builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsPin.rev}.tar.gz";
sha256 = nixpkgsPin.narHash;
};
pkgs = args.pkgs or (import nixpkgsSrc {});
flake-compat =
pkgs.fetchzip {
url = "https://github.com/input-output-hk/flake-compat/archive/${flakeCompatPin.rev}.tar.gz";
sha256 = flakeCompatPin.narHash;
};
self = import flake-compat {
# We bypass flake-compat's rootSrc cleaning by evading its detection of this as a git
# repo.
# This is done for 3 reasons:
# * To workaround https://github.com/edolstra/flake-compat/issues/25
# * Make `updateMaterilized` scripts work (if filtering is done by `flake-compat`
# the `updateMaterilized` scripts will try to update the copy in the store).
# * Allow more granular filtering done by the tests (the use of `cleanGit` and `cleanSourceWith`
# in `test/default.nix`). If `flake-compat` copies the whole git repo, any change to the
# repo causes a change of input for all tests.
src = { outPath = ./.; };
inherit pkgs;
};
in self.defaultNix // (self.defaultNix.internal.compat
({ system = args.pkgs.system or builtins.currentSystem; } // args))