summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-06-05 23:27:38 -0400
committerGitHub <noreply@github.com>2018-06-05 23:27:38 -0400
commit907d1dee67f9422b107e34e11aac43148490666f (patch)
tree1d5a8d5a0fdbe23b70a24ebd8af0024f38c7bb78 /pkgs
parente624ebf2332cbda46427b5d5821cd0669f31b0de (diff)
parent9aba987f37dd3ea775b63de9b0257ead8e7b719a (diff)
downloadnixlib-907d1dee67f9422b107e34e11aac43148490666f.tar
nixlib-907d1dee67f9422b107e34e11aac43148490666f.tar.gz
nixlib-907d1dee67f9422b107e34e11aac43148490666f.tar.bz2
nixlib-907d1dee67f9422b107e34e11aac43148490666f.tar.lz
nixlib-907d1dee67f9422b107e34e11aac43148490666f.tar.xz
nixlib-907d1dee67f9422b107e34e11aac43148490666f.tar.zst
nixlib-907d1dee67f9422b107e34e11aac43148490666f.zip
Merge pull request #41503 from holidaycheck/bat-darwin
bat: support darwin
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/bat/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/tools/misc/bat/default.nix b/pkgs/tools/misc/bat/default.nix
index 7a3231ce85c2..01fbe67e5f20 100644
--- a/pkgs/tools/misc/bat/default.nix
+++ b/pkgs/tools/misc/bat/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, rustPlatform, fetchFromGitHub, cmake, pkgconfig, zlib }:
+{ stdenv, rustPlatform, fetchFromGitHub, cmake, pkgconfig, zlib, libiconv, darwin }:
 
 rustPlatform.buildRustPackage rec {
   name    = "bat-${version}";
@@ -15,11 +15,15 @@ rustPlatform.buildRustPackage rec {
 
   nativeBuildInputs = [ cmake pkgconfig zlib ];
 
+  buildInputs = [ libiconv ] ++ stdenv.lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.Security
+  ];
+
   meta = with stdenv.lib; {
     description = "A cat(1) clone with syntax highlighting and Git integration";
     homepage    = https://github.com/sharkdp/bat;
     license     = with licenses; [ asl20 /* or */ mit ];
     maintainers = with maintainers; [ dywedir ];
-    platforms   = platforms.linux;
+    platforms   = platforms.linux ++ platforms.darwin;
   };
 }