From 2515ea7edae75b29d9bc4dfcb5b9920de777b241 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sat, 25 Jun 2022 12:00:00 +0000 Subject: [PATCH] lnav: fix static build --- pkgs/tools/misc/lnav/default.nix | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/lnav/default.nix b/pkgs/tools/misc/lnav/default.nix index ce541e8f567f..d88ea9b750a3 100644 --- a/pkgs/tools/misc/lnav/default.nix +++ b/pkgs/tools/misc/lnav/default.nix @@ -1,5 +1,17 @@ -{ lib, stdenv, fetchFromGitHub, pcre-cpp, sqlite, ncurses -, readline, zlib, bzip2, autoconf, automake, curl }: +{ lib +, stdenv +, fetchFromGitHub +, pcre-cpp +, sqlite +, ncurses +, readline +, zlib +, bzip2 +, autoconf +, automake +, curl +, buildPackages +}: stdenv.mkDerivation rec { pname = "lnav"; @@ -20,9 +32,14 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - nativeBuildInputs = [ autoconf automake ]; - buildInputs = [ + strictDeps = true; + depsBuildBuild = [ buildPackages.stdenv.cc ]; + nativeBuildInputs = [ + autoconf + automake zlib + ]; + buildInputs = [ bzip2 ncurses pcre-cpp