Skip to content

Commit 40214f7

Browse files
committed
ci: use nixpkgsMaster to get ghc966 for stack
1 parent 17912bf commit 40214f7

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

flake.lock

Lines changed: 18 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
inputs.nixpkgs.follows = "nixpkgs";
77
};
88
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
9+
inputs.nixpkgsMaster.url = "github:NixOS/nixpkgs/master";
910

10-
outputs = { self, flake-utils, gitignore, haskellNix, nixpkgs }:
11+
outputs = { self, flake-utils, gitignore, haskellNix, nixpkgs, nixpkgsMaster }:
1112
flake-utils.lib.eachSystem ["x86_64-linux" "x86_64-darwin" "aarch64-darwin"] (system:
1213
let
1314
compiler-nix-name = "ghc966";
@@ -75,7 +76,10 @@
7576
exit 0
7677
'';
7778

78-
nixpkgsPath = pkgs.writeShellScriptBin "nixpkgsPath.sh" "echo -n ${pkgs.path}";
79+
nixpkgsPath = let
80+
pkgsMaster = import nixpkgsMaster { inherit system; };
81+
in
82+
pkgsMaster.writeShellScriptBin "nixpkgsPath.sh" "echo -n ${pkgsMaster.path}";
7983
});
8084

8185
inherit flake;

0 commit comments

Comments
 (0)