mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 22:14:42 +00: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
|
||||
, zig_0_11
|
||||
, installShellFiles
|
||||
, pie ? stdenv.isDarwin
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@ -24,6 +25,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
ncurses
|
||||
];
|
||||
|
||||
zigBuildFlags = lib.optional pie "-Dpie=true";
|
||||
|
||||
postInstall = ''
|
||||
installManPage ncdu.1
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user