Throw an error for unsupported glibc versions

This commit is contained in:
Silvan Mosberger 2020-08-10 16:47:58 +02:00
parent 09ba836904
commit 21fa4c111d
No known key found for this signature in database
GPG Key ID: E8F1E9EAD284E17D

View File

@ -1,7 +1,7 @@
{ ghcVersion, glibcName }:
let
sources = import ./sources.nix;
pkgs = sources.glibcSpecificPkgs.${glibcName};
pkgs = sources.glibcSpecificPkgs.${glibcName} or (throw "all-hies: A nixpkgs with ${glibcName} is currently not supported. ");
inherit (pkgs) lib;
versionList = builtins.match "([0-9]+)\\.([0-9]+)\\.([0-9]+)" ghcVersion;