From 472c14af6023a2f9b18f8980e2ec60f940526712 Mon Sep 17 00:00:00 2001 From: Piotr Bogdan Date: Fri, 4 Jan 2019 19:33:50 +0000 Subject: [PATCH] k2pdfopt: link with pthreads explicitly --- pkgs/applications/misc/k2pdfopt/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/misc/k2pdfopt/default.nix b/pkgs/applications/misc/k2pdfopt/default.nix index 8f69abd3a987..2a3b2e61fc23 100644 --- a/pkgs/applications/misc/k2pdfopt/default.nix +++ b/pkgs/applications/misc/k2pdfopt/default.nix @@ -104,6 +104,10 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DCMAKE_C_FLAGS=-I${src}/include_mod" ]; + NIX_LDFLAGS = [ + "-lpthread" + ]; + installPhase = '' install -D -m 755 k2pdfopt $out/bin/k2pdfopt '';