tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
psmisc: fix cross-compiling
authored by
volth
and committed by
GitHub
7 years ago
0653da42
f3dd3b6a
+5
-1
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
psmisc
default.nix
+5
-1
pkgs/os-specific/linux/psmisc/default.nix
···
15
15
nativeBuildInputs = [ autoconf automake gettext ];
16
16
buildInputs = [ ncurses ];
17
17
18
18
-
preConfigure = ''
18
18
+
preConfigure = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
19
19
+
# Goes past the rpl_malloc linking failure
20
20
+
export ac_cv_func_malloc_0_nonnull=yes
21
21
+
export ac_cv_func_realloc_0_nonnull=yes
22
22
+
'' + ''
19
23
echo $version > .tarball-version
20
24
./autogen.sh
21
25
'';