mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
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:
parent
8d96cbfdca
commit
0af69c7c52
|
@ -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
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue