about summary refs log tree commit diff
path: root/pkgs/development/compilers/nim
diff options
context:
space:
mode:
authorEmery Hemingway <ehmry@posteo.net>2021-06-15 10:47:24 +0200
committerEmery Hemingway <ehmry@posteo.net>2021-06-15 10:55:34 +0200
commit84a4536e58ec7974fd08ee75ec1a4d40031088e4 (patch)
treea8cde93721d6cb2485e14b3593fc1216d16990bc /pkgs/development/compilers/nim
parent4b7c8d538e1aed2bc30b6e7eb1cbd96063ad4132 (diff)
nim: 1.4.6 -> 1.4.8
https://nim-lang.org/blog/2021/05/25/version-148-released.html

Set a default $CC and $CXX in the Nim wrapper script, this makes
the wrapper usuable outside of build environments.
Diffstat (limited to 'pkgs/development/compilers/nim')
-rw-r--r--pkgs/development/compilers/nim/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/compilers/nim/default.nix b/pkgs/development/compilers/nim/default.nix
index 21d1017a67533..25b1c48735725 100644
--- a/pkgs/development/compilers/nim/default.nix
+++ b/pkgs/development/compilers/nim/default.nix
@@ -95,12 +95,12 @@ in {
 
   nim-unwrapped = stdenv.mkDerivation rec {
     pname = "nim-unwrapped";
-    version = "1.4.6";
+    version = "1.4.8";
     strictDeps = true;
 
     src = fetchurl {
       url = "https://nim-lang.org/download/nim-${version}.tar.xz";
-      hash = "sha256-D7wPkoLP/oXembxHv6h2Ulud3aKi6uVcGFoIgEuY070=";
+      hash = "sha256-t5jFd0EdfZW4YxJh27Nnbp0a/Z42dA0ESWagVVtBRBo=";
     };
 
     buildInputs = [ boehmgc openssl pcre readline sqlite ];
@@ -290,6 +290,8 @@ in {
 
       makeWrapper \
         ${nim'}/nim/bin/nim $out/bin/${targetPlatform.config}-nim \
+        --set-default CC $(command -v $CC) \
+        --set-default CXX $(command -v $CXX) \
         $wrapperArgs
       ln -s $out/bin/${targetPlatform.config}-nim $out/bin/nim