Skip to content

Use nixpkgs 22.05 for scripts #1632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions build.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let
haskellNix = (import ./default.nix {});
in
{ nixpkgs ? haskellNix.sources.nixpkgs-2111
{ nixpkgs ? haskellNix.sources.nixpkgs-2205
, nixpkgsArgs ? haskellNix.nixpkgsArgs
, pkgs ? import nixpkgs nixpkgsArgs
, evalPackages ? import nixpkgs nixpkgsArgs
Expand Down Expand Up @@ -76,10 +76,14 @@ in rec {
];
};
check-materialization-concurrency = pkgs.buildPackages.callPackage ./scripts/check-materialization-concurrency/check.nix {};
check-path-support = pkgs.buildPackages.callPackage ./scripts/check-path-support.nix {
# TODO remove this when nixpkgs-2205 is released and used for `pkgs`
# check-path-support fails unless we have nix 2.4 or newer.
inherit (import haskellNix.sources.nixpkgs-unstable {}) nix;
# Forcing nixpkgs-unstable here because this test makes a script
# that when run will build `aeson` (used by `tests/cabal-simple`)
# and we currently do not build that on hydra for nixpkgs-2205 (used by `pkgs`).
# Using nixpkgs-unstable should allow buildkite to find what it needs
# in the hydra cache when it runs the script.
check-path-support = (import haskellNix.sources.nixpkgs-unstable nixpkgsArgs)
.buildPackages.callPackage ./scripts/check-path-support.nix {
inherit compiler-nix-name;
};
};

Expand Down
5 changes: 1 addition & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,14 @@ site_name: Alternative Haskell Infrastructure for Nixpkgs
theme: readthedocs
site_url: null
repo_url: https://github.com/input-output-hk/haskell.nix
permalink: true
markdown_extensions:
- admonition
- footnotes
- tables
- toc:
permalink: true

# this is called `nav` in more recent mkdocs versions. Mine
# right now is 0.17.5
pages:
nav:
- 'Introduction': index.md
- 'Motivation': motivation.md
- 'Architecture': architecture.md
Expand Down
4 changes: 2 additions & 2 deletions scripts/check-path-support.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, writeScript, coreutils, gnutar, gzip, nix, gitMinimal }:
{ stdenv, lib, writeScript, coreutils, gnutar, gzip, nix, gitMinimal, compiler-nix-name }:

with lib;

Expand All @@ -9,5 +9,5 @@ writeScript "check-path-supprot.sh" ''

export PATH="${makeBinPath [ coreutils gnutar gzip nix gitMinimal ]}"

nix-build -E '((import ./. {}).pkgs.haskell-nix.cabalProject { compiler-nix-name = "ghc865"; src = ./test/cabal-simple; }).cabal-simple.components.library'
nix-build -E '((import ./. {}).pkgs.haskell-nix.cabalProject { compiler-nix-name = "${compiler-nix-name}"; src = ./test/cabal-simple; }).cabal-simple.components.library'
''