summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2017-12-12 18:55:23 -0500
committerGitHub <noreply@github.com>2017-12-12 18:55:23 -0500
commite5629dc51a313c3b99725616718d2deff49cd891 (patch)
treedb8c9beb70833b2503e8c9da305dc3ac0294f8fe /pkgs/tools/misc
parent3cad1abf9e5e8a4e0b38270b1d7c7cd89a97e92b (diff)
parentf33a513d2b1f07da28549ffb7067f913bb3e302a (diff)
downloadnixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar
nixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar.gz
nixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar.bz2
nixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar.lz
nixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar.xz
nixlib-e5629dc51a313c3b99725616718d2deff49cd891.tar.zst
nixlib-e5629dc51a313c3b99725616718d2deff49cd891.zip
Merge pull request #32365 from vcunat/p/check-meta
check meta, treewide
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/mprime/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/tools/misc/mprime/default.nix b/pkgs/tools/misc/mprime/default.nix
index 2aea2530057c..3ef039507d4e 100644
--- a/pkgs/tools/misc/mprime/default.nix
+++ b/pkgs/tools/misc/mprime/default.nix
@@ -5,12 +5,13 @@ let
     if stdenv.system == "x86_64-linux" then "linux64"
     else if stdenv.system == "i686-linux" then "linux"
     else if stdenv.system == "x86_64-darwin" then "macosx64"
-    else abort "Unsupported platform";
+    else throwSystem;
+  throwSystem = throw "Unsupported system: ${stdenv.system}";
   gwnum =
     if stdenv.system == "x86_64-linux" then "make64"
     else if stdenv.system == "i686-linux" then "makefile"
     else if stdenv.system == "x86_64-darwin" then "makemac"
-    else abort "Unsupported platform";
+    else throwSystem;
 in
 
 stdenv.mkDerivation {