Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #266529 from jonringer/fix-libhugetlbfs-cross

libhugetlbfs: fix cross compile

authored by Artturi and committed by GitHub 985a9490 1b05a9b8

+3
+3
pkgs/development/libraries/libhugetlbfs/default.nix
··· 32 "EXEDIR=$(bin)/bin" 33 "DOCDIR=$(doc)/share/doc/libhugetlbfs" 34 "MANDIR=$(man)/share/man" 35 ]; 36 37 # Default target builds tests as well, and the tests want a static
··· 32 "EXEDIR=$(bin)/bin" 33 "DOCDIR=$(doc)/share/doc/libhugetlbfs" 34 "MANDIR=$(man)/share/man" 35 + ] ++ lib.optionals (stdenv.buildPlatform.system != stdenv.hostPlatform.system) [ 36 + # The ARCH logic defaults to querying `uname`, which will return build platform arch 37 + "ARCH=${stdenv.hostPlatform.uname.processor}" 38 ]; 39 40 # Default target builds tests as well, and the tests want a static