From 4782afc06e9a0b866490c459e6258605a20653f7 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sun, 12 Jan 2020 20:15:48 +0100 Subject: gnu: nvidia-cg-toolkit: Fix a non-exhaustive match. * nongnu/packages/game-development.scm (nvidia-cg-toolkit): Replace a non-exhaustive match with string=? to fix evaluation on unsupported platforms. --- nongnu/packages/game-development.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nongnu/packages/game-development.scm b/nongnu/packages/game-development.scm index 5888d13..f118944 100644 --- a/nongnu/packages/game-development.scm +++ b/nongnu/packages/game-development.scm @@ -53,10 +53,8 @@ (base32 "0y4qms4lm9xiix93g45337rx5nrp0y3gb0x0avyv7l9qrkk03zz8")))) (define (lib) - (match (or (%current-target-system) - (%current-system)) - ("x86_64-linux" "lib64") - ("i686-linux" "lib"))) + (if (string=? (or (%current-target-system) (%current-system)) "x86_64-linux") + "lib64" "lib")) (define-public nvidia-cg-toolkit (package -- cgit v1.2.3