diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2016-08-30 22:34:40 +0300 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2016-08-30 23:00:13 +0300 |
commit | d45d243749540c00b84b93b7e5d2645a6fab44d0 (patch) | |
tree | a247de88f85e0e542e1528cf9d3648b0bd8d883c | |
parent | 0cfb79afacdd07c40f7c8b81b17df4f55a7205f2 (diff) | |
download | nixpkgs-d45d243749540c00b84b93b7e5d2645a6fab44d0.tar nixpkgs-d45d243749540c00b84b93b7e5d2645a6fab44d0.tar.gz nixpkgs-d45d243749540c00b84b93b7e5d2645a6fab44d0.tar.bz2 nixpkgs-d45d243749540c00b84b93b7e5d2645a6fab44d0.tar.lz nixpkgs-d45d243749540c00b84b93b7e5d2645a6fab44d0.tar.xz nixpkgs-d45d243749540c00b84b93b7e5d2645a6fab44d0.tar.zst nixpkgs-d45d243749540c00b84b93b7e5d2645a6fab44d0.zip |
libbb2: Use "--enable-fat=yes" to avoid build nondeterminism
Otherwise it would pick various -march flags based on the CPU of the compiling system, using beautiful code like this: ```` 63 AC_CACHE_CHECK(for x86 cpuid $1 output, ax_cv_gcc_x86_cpuid_$1, 64 [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [ 65 int op = $1, eax, ebx, ecx, edx; 66 FILE *f; 67 __asm__("cpuid" 68 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 69 : "a" (op)); 70 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 71 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 72 fclose(f); 73 return 0; 74 ])], ... 121 AC_CACHE_CHECK([whether avx is supported], [ax_cv_have_avx_ext], 122 [ 123 ax_cv_have_avx_ext=no 124 if test "$((0x$ecx>>28&0x01))" = 1; then 125 ax_cv_have_avx_ext=yes 126 fi 127 ]) ````
-rw-r--r-- | pkgs/development/libraries/libb2/default.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/development/libraries/libb2/default.nix b/pkgs/development/libraries/libb2/default.nix index f4d01def94a..eae08f0071c 100644 --- a/pkgs/development/libraries/libb2/default.nix +++ b/pkgs/development/libraries/libb2/default.nix @@ -3,6 +3,13 @@ with stdenv; with lib; mkDerivation rec { name = "libb2-${meta.version}"; + src = fetchurl { + url = "https://blake2.net/${name}.tar.gz"; + sha256 = "7829c7309347650239c76af7f15d9391af2587b38f0a65c250104a2efef99051"; + }; + + configureFlags = [ "--enable-fat=yes" ]; + meta = { version = "0.97"; description = "The BLAKE2 family of cryptographic hash functions"; @@ -10,9 +17,4 @@ mkDerivation rec { maintainers = with maintainers; [ dfoxfranke ]; license = licenses.cc0; }; - - src = fetchurl { - url = "https://blake2.net/${name}.tar.gz"; - sha256 = "7829c7309347650239c76af7f15d9391af2587b38f0a65c250104a2efef99051"; - }; } |