Skip to content

Commit 8554eaf

Browse files
committedSep 15, 2017
nntp-proxy: fix clang build
1 parent 0504dd6 commit 8554eaf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎pkgs/applications/networking/nntp-proxy/default.nix

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ stdenv.mkDerivation rec {
1111
sha256 = "0jwxh71am83fbnq9mn06jl06rq8qybm506js79xmmc3xbk5pqvy4";
1212
};
1313

14-
buildInputs = [ libconfig pkgconfig libevent openssl ];
14+
nativeBuildInputs = [ pkgconfig ];
15+
buildInputs = [ libconfig libevent openssl ];
1516

16-
installFlags = "INSTALL_DIR=\${out}/bin/";
17+
installFlags = [ "INSTALL_DIR=$(out)/bin/" ];
1718

18-
preInstall = ''
19+
prePatch = ''
1920
mkdir -p $out/bin
2021
substituteInPlace Makefile \
21-
--replace /usr/bin/install $(type -P install)
22+
--replace /usr/bin/install $(type -P install) \
23+
--replace gcc cc
2224
'';
2325

2426
meta = {

0 commit comments

Comments
 (0)
Please sign in to comment.