ncdu: pie for darwin builds

Fix broken darwin compilation. The issue started after the 2.2.2 ->
2.3 update (0b6d395909).

`ncdu` defaults pie to false while `zig` requires it to be true for
darwin.
This commit is contained in:
Tarcísio Genaro Rodrigues 2023-08-17 05:41:27 -03:00
parent 8d96cbfdca
commit 0af69c7c52

View file

@ -4,6 +4,7 @@
, ncurses , ncurses
, zig_0_11 , zig_0_11
, installShellFiles , installShellFiles
, pie ? stdenv.isDarwin
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
@ -24,6 +25,8 @@ stdenv.mkDerivation (finalAttrs: {
ncurses ncurses
]; ];
zigBuildFlags = lib.optional pie "-Dpie=true";
postInstall = '' postInstall = ''
installManPage ncdu.1 installManPage ncdu.1
''; '';