Merge pull request #249722 from tarc/ncdu-force-pie-darwin

ncdu: pie for darwin builds
This commit is contained in:
Uri Baghin 2023-08-21 14:41:45 +10:00 committed by GitHub
commit 1d9c231749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';