git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #37253 from LnL7/darwin-communi

communi: fix darwin build

commit7796075209a3d0814d8dc1d15498fe6451cd2d44 authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 21 May 2018, 14:22 (9 years ago) parent7610c1099d56c5
2 files changed+7−3
pkgs/applications/networking/irc/communi/default.nix+1−1 pkgs/development/libraries/libcommuni/default.nix+6−2
pkgs/applications/networking/irc/communi/default.nix+1−1
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
2929 "
3030 '';
3131
32− postInstall = ''
32+ postInstall = stdenv.lib.optionalString stdenv.isLinux ''
3333 substituteInPlace "$out/share/applications/communi.desktop" \
3434 --replace "/usr/bin" "$out/bin"
3535 '';
pkgs/development/libraries/libcommuni/default.nix+6−2
@@ -19,12 +19,16 @@ stdenv.mkDerivation rec {
1919 enableParallelBuilding = true;
2020
2121 dontUseQmakeConfigure = true;
22− configureFlags = "-config release";
22+ configureFlags = [ "-config" "release" ];
23+
2324 preConfigure = ''
2425 sed -i -e 's|/bin/pwd|pwd|g' configure
2526 '';
2627
27− doCheck = true;
28+ # The tests fail on darwin because of install_name if they run
29+ # before the frameworks are installed.
30+ doInstallCheck = true;
31+ installCheckTarget = "check";
2832
2933 # Hack to avoid TMPDIR in RPATHs.
3034 preFixup = "rm -rf lib";