summary refs log tree commit diff
path: root/pkgs/tools/misc/krapslog
diff options
context:
space:
mode:
authorStéphan Kochen <git@stephank.nl>2021-05-16 21:36:23 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-16 14:34:50 -0700
commita5bff380e60bcb56ed69407e7e27b45385061007 (patch)
treed796055120ce67eabc548c7aee485867b3c08efa /pkgs/tools/misc/krapslog
parent9716355b45f47fc3069cc9c5dbedc50fdc4793cc (diff)
downloadnixpkgs-a5bff380e60bcb56ed69407e7e27b45385061007.tar
nixpkgs-a5bff380e60bcb56ed69407e7e27b45385061007.tar.gz
nixpkgs-a5bff380e60bcb56ed69407e7e27b45385061007.tar.bz2
nixpkgs-a5bff380e60bcb56ed69407e7e27b45385061007.tar.lz
nixpkgs-a5bff380e60bcb56ed69407e7e27b45385061007.tar.xz
nixpkgs-a5bff380e60bcb56ed69407e7e27b45385061007.tar.zst
nixpkgs-a5bff380e60bcb56ed69407e7e27b45385061007.zip
krapslog: fix darwin build
Diffstat (limited to 'pkgs/tools/misc/krapslog')
-rw-r--r--pkgs/tools/misc/krapslog/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/misc/krapslog/default.nix b/pkgs/tools/misc/krapslog/default.nix
index ba6f92cc0fc..a5cbbc87770 100644
--- a/pkgs/tools/misc/krapslog/default.nix
+++ b/pkgs/tools/misc/krapslog/default.nix
@@ -1,4 +1,4 @@
-{ lib, rustPlatform, fetchFromGitHub }:
+{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv }:
 
 rustPlatform.buildRustPackage rec {
   pname = "krapslog";
@@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "sha256-rcLsqMegCos+v0OkdRvH9xoopE7R/njEUVteMY/6mj8=";
 
+  buildInputs = lib.optional stdenv.isDarwin libiconv;
+
   meta = with lib; {
     description = "Visualize a log file with sparklines";
     homepage = "https://github.com/acj/krapslog-rs";