Skip to content

Commit

Permalink
Warn when nixpkgs from haskell and llvm backends diverge (#3971)
Browse files Browse the repository at this point in the history
  • Loading branch information
goodlyrottenapple authored Feb 9, 2024
1 parent 59c24c1 commit 851097b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,18 @@
"aarch64-darwin"
] (system:
let
pkgs = import nixpkgs {
inherit system;

# Temporarily required until a bug on pyOpenSSL is resolved for aarch64-darwin
# https://github.com/NixOS/nixpkgs/pull/172397
config.allowBroken = system == "aarch64-darwin";
overlays =
[ (final: prev: { llvm-backend-build-type = "FastBuild"; }) ]
++ allOverlays;
};
pkgs = nixpkgs.lib.trivial.warnIf (llvm-backend.inputs.nixpkgs.rev
!= haskell-backend.inputs.nixpkgs.rev)
"The version of nixpkgs in Haskell backend and LLVM backend has diverged!"
import nixpkgs {
inherit system;
# Temporarily required until a bug on pyOpenSSL is resolved for aarch64-darwin
# https://github.com/NixOS/nixpkgs/pull/172397
config.allowBroken = system == "aarch64-darwin";
overlays =
[ (final: prev: { llvm-backend-build-type = "FastBuild"; }) ]
++ allOverlays;
};

haskell-backend-bins = pkgs.symlinkJoin {
name = "kore-${haskell-backend.sourceInfo.shortRev or "local"}";
Expand Down

0 comments on commit 851097b

Please sign in to comment.