Skip to content

Commit

Permalink
Drop nixpkgsLatest in favour of haskellNix/nixpkgs (#1783)
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact authored Jan 21, 2025
2 parents aaf1159 + f934a67 commit 64428c6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 40 deletions.
35 changes: 9 additions & 26 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 3 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
inputs = {
nixpkgs.follows = "haskellNix/nixpkgs";
nixpkgsLatest.url = "github:NixOS/nixpkgs/nixos-24.05";
haskellNix.url = "github:input-output-hk/haskell.nix";
hydra-spec.url = "github:cardano-scaling/hydra-formal-specification";
iohk-nix.url = "github:input-output-hk/iohk-nix";
Expand Down Expand Up @@ -32,8 +31,6 @@
{ self
, flake-parts
, nixpkgs
# TODO remove when haskellNix updated to newer nixpkgs
, nixpkgsLatest
, cardano-node
, ...
} @ inputs:
Expand All @@ -53,9 +50,6 @@

# nixpkgs enhanced with haskell.nix and crypto libs as used by iohk

pkgsLatest = import nixpkgsLatest {
inherit system;
};
pkgs = import nixpkgs {
inherit system;
overlays = [
Expand Down Expand Up @@ -159,8 +153,7 @@
};
process-compose."demo" = import ./nix/hydra/demo.nix {
inherit system pkgs inputs self;
inherit (pkgsLatest) process-compose;
inherit (pkgs) cardano-node cardano-cli;
inherit (pkgs) cardano-node cardano-cli process-compose;
inherit (hydraPackages) hydra-node hydra-tui;
};

Expand All @@ -173,7 +166,7 @@
pkgs.nixpkgs-fmt
pkgs.fourmolu
];
treefmt = pkgsLatest.treefmt;
treefmt = pkgs.treefmt;
};
} // lib.attrsets.mergeAttrsList (map (x: componentsToWerrors x hsPkgs.${x}) [
"hydra-cardano-api"
Expand All @@ -189,7 +182,7 @@

devShells = import ./nix/hydra/shell.nix {
inherit (inputs) aiken;
inherit inputs pkgs hsPkgs system pkgsLatest hydraPackages;
inherit inputs pkgs hsPkgs system hydraPackages;
ghc = pkgs.buildPackages.haskell-nix.compiler.${compiler};
};
};
Expand Down
6 changes: 2 additions & 4 deletions nix/hydra/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
, system
, pkgs
, ghc
, pkgsLatest
, aiken
, hydraPackages
}:
Expand Down Expand Up @@ -40,6 +39,7 @@ let
# Generate a graph of the module dependencies in the "dot" format
pkgs.haskellPackages.graphmod
# To interact with mithril and integration tests
pkgs.jq
pkgs.mithril-client-cli
pkgs.mithril-client-cli-unstable
pkgs.nixpkgs-fmt
Expand All @@ -53,8 +53,6 @@ let
pkgs.weeder
pkgs.yarn
pkgs.yq
# Use latest jq in all shells, to avoid 1.6 bug with large integers.
pkgsLatest.jq
];

libs = [
Expand Down Expand Up @@ -149,7 +147,7 @@ let
pkgs.plantuml
# Note: jq 1.6 has a bug that means it fails to read large integers
# correctly, so we require 1.7+ at least.
pkgsLatest.jq
pkgs.jq
pkgs.weeder
];
};
Expand Down

0 comments on commit 64428c6

Please sign in to comment.