summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-07-11 07:31:20 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-07-11 07:46:40 +0100
commit662813256c0852b535c1b2de06da54d066e89b83 (patch)
tree29fe9cb4dfd6f1925b03a5cc6727ef26cb3227aa
parent6de4f6b39fd26751bb096acd709ea30c645eab4e (diff)
downloadnixpkgs-662813256c0852b535c1b2de06da54d066e89b83.tar
nixpkgs-662813256c0852b535c1b2de06da54d066e89b83.tar.gz
nixpkgs-662813256c0852b535c1b2de06da54d066e89b83.tar.bz2
nixpkgs-662813256c0852b535c1b2de06da54d066e89b83.tar.lz
nixpkgs-662813256c0852b535c1b2de06da54d066e89b83.tar.xz
nixpkgs-662813256c0852b535c1b2de06da54d066e89b83.tar.zst
nixpkgs-662813256c0852b535c1b2de06da54d066e89b83.zip
ntl: explicitly set 'configurePlatforms = [ ];'
Without the change build with config.configurePlatformsByDefault = true
fails as:

    $ nix build -f. ntl --arg config '{ configurePlatformsByDefault = true; }' -L
    ...
    Error: unrecognized option: --build=x86_64-unknown-linux-gnu
-rw-r--r--pkgs/development/libraries/ntl/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ntl/default.nix b/pkgs/development/libraries/ntl/default.nix
index f204ae68fb5..9335bec35ce 100644
--- a/pkgs/development/libraries/ntl/default.nix
+++ b/pkgs/development/libraries/ntl/default.nix
@@ -35,6 +35,11 @@ stdenv.mkDerivation rec {
 
   dontAddPrefix = true; # DEF_PREFIX instead
 
+  # Written in perl, does not support autoconf-style
+  # --build=/--host= options:
+  #   Error: unrecognized option: --build=x86_64-unknown-linux-gnu
+  configurePlatforms = [ ];
+
   # reference: http://shoup.net/ntl/doc/tour-unix.html
   configureFlags = [
     "DEF_PREFIX=$(out)"