From 21fa4c111dd0a93ee069e560946ebeeb63ea40e3 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Mon, 10 Aug 2020 16:47:58 +0200 Subject: [PATCH] Throw an error for unsupported glibc versions --- build.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.nix b/build.nix index a0e3458..1780556 100644 --- a/build.nix +++ b/build.nix @@ -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;