Skip to content

Commit 28a61eb

Browse files
authored
Update add for-stackage hackage.nix input (#2315)
* Update add for-stackage hackage.nix input * Update check-path-support * Update nixpkgs used by test/tests.sh
1 parent 908d11a commit 28a61eb

File tree

9 files changed

+31
-128
lines changed

9 files changed

+31
-128
lines changed

.github/workflows/updates.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- name: "Update pins"
2020
run: |
2121
nix flake update hackage
22+
nix flake update hackage-for-stackage
2223
nix flake update stackage
2324
- name: Commit and push changes
2425
run: |

build.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
, nixpkgsArgs ? haskellNix.nixpkgsArgs
77
, pkgs ? import nixpkgs nixpkgsArgs
88
, evalPackages ? import nixpkgs nixpkgsArgs
9-
# This version is used to make our GitHub Action runners happy
10-
# Using `nixpkgs-unstable` currently results in:
11-
# version `GLIBCXX_3.4.30' not found
12-
, nixpkgsForGitHubAction ? haskellNix.sources.nixpkgs-2211
13-
, pkgsForGitHubAction ? import nixpkgsForGitHubAction (nixpkgsArgs // { inherit (pkgs) system; })
149
, ifdLevel ? 1000
1510
, compiler-nix-name ? throw "No `compiler-nix-name` passed to build.nix"
1611
, haskellNix ? (import ./default.nix {})
@@ -98,7 +93,7 @@ in rec {
9893
nix-tools = haskell.nix-tools-unchecked; # includes cabal-install and default-setup
9994
};
10095
check-materialization-concurrency = pkgs.buildPackages.callPackage ./scripts/check-materialization-concurrency/check.nix {};
101-
check-path-support = pkgsForGitHubAction.buildPackages.callPackage ./scripts/check-path-support.nix {
96+
check-path-support = pkgs.buildPackages.callPackage ./scripts/check-path-support.nix {
10297
inherit compiler-nix-name;
10398
};
10499
};

flake.lock

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

flake.nix

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33

44
inputs = {
55
nixpkgs.follows = "nixpkgs-unstable";
6-
nixpkgs-2003 = { url = "github:NixOS/nixpkgs/nixpkgs-20.03-darwin"; };
7-
nixpkgs-2105 = { url = "github:NixOS/nixpkgs/nixpkgs-21.05-darwin"; };
8-
nixpkgs-2111 = { url = "github:NixOS/nixpkgs/nixpkgs-21.11-darwin"; };
9-
nixpkgs-2205 = { url = "github:NixOS/nixpkgs/nixpkgs-22.05-darwin"; };
10-
nixpkgs-2211 = { url = "github:NixOS/nixpkgs/nixpkgs-22.11-darwin"; };
116
nixpkgs-2305 = { url = "github:NixOS/nixpkgs/nixpkgs-23.05-darwin"; };
127
nixpkgs-2311 = { url = "github:NixOS/nixpkgs/nixpkgs-23.11-darwin"; };
138
nixpkgs-2405 = { url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin"; };
@@ -28,6 +23,10 @@
2823
url = "github:input-output-hk/hackage.nix";
2924
flake = false;
3025
};
26+
hackage-for-stackage = {
27+
url = "github:input-output-hk/hackage.nix/for-stackage";
28+
flake = false;
29+
};
3130
stackage = {
3231
url = "github:input-output-hk/stackage.nix";
3332
flake = false;

hackage-src.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

overlays/haskell.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ final: prev: {
2323
# here and be explicit about imports and dependencies.
2424
callPackage = prev.lib.callPackageWith (final // final.haskell-nix);
2525

26-
# You can provide different pins for hackage.nix and stackage.nix if required.
27-
# It's also possible to override these sources with NIX_PATH.
28-
hackageSourceJSON = ../hackage-src.json;
29-
stackageSourceJSON = ../stackage-src.json;
30-
3126
# ghc hackage patches.
3227
# these are patches that turn hackage packages into the same as the ones
3328
# ghc ships with the supposedly same version. See GHC Track Issue: 16199
@@ -47,7 +42,7 @@ final: prev: {
4742
# All packages from Hackage as Nix expressions
4843
hackageSrc = sources.hackage;
4944
# The only stack projects need hackage.nix now
50-
hackageForStack = import hackageSrc;
45+
hackageForStack = import sources.hackage-for-stackage;
5146

5247
# Contains the hashes of the cabal 01-index.tar.gz for given
5348
# index states. Starting from April 1st 2019.

stackage-src.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/stack-remote-resolver/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
let
44
project = project' {
55
src = testSrc "stack-remote-resolver";
6-
resolverSha256 = "1rldkqqsxd8zxybrkqhc25bcxinhz212kz45jcz8jinfihc91jl7";
6+
resolverSha256 = "sha256-Vw1i0woTpbnbfl7KLAWZW6tfMHV7MOGLtzSlacM5sLE=";
77
inherit evalPackages;
88
};
99
packages = project.hsPkgs;
1010

1111
in recurseIntoAttrs {
12-
meta.disabled = compiler-nix-name != "ghc865";
12+
meta.disabled = compiler-nix-name != "ghc984";
1313
ifdInputs = {
1414
inherit (project) stack-nix;
1515
};

test/tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /usr/bin/env nix-shell
2-
#! nix-shell -I "nixpkgs=channel:nixos-22.11" -i bash -p bash jq nix gnused
2+
#! nix-shell -I "nixpkgs=channel:nixos-24.11" -i bash -p bash jq nix gnused
33

44
set -euo pipefail
55

0 commit comments

Comments
 (0)