diff options
author | Mathias Schreck <schreck.mathias@googlemail.com> | 2018-06-05 23:56:17 +0200 |
---|---|---|
committer | Mathias Schreck <schreck.mathias@googlemail.com> | 2018-06-06 00:06:22 +0200 |
commit | 9aba987f37dd3ea775b63de9b0257ead8e7b719a (patch) | |
tree | f0dc278f13ef873d2e23118e70aeaf04f8095038 /pkgs/tools/misc/bat | |
parent | 44f3a1dd41bc6ec78d827bb2aa5997a4cb67be70 (diff) |
bat: support darwin
Diffstat (limited to 'pkgs/tools/misc/bat')
-rw-r--r-- | pkgs/tools/misc/bat/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/tools/misc/bat/default.nix b/pkgs/tools/misc/bat/default.nix index 7a3231ce85c27..01fbe67e5f207 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; }; } |