Skip to content

Commit

Permalink
Merge pull request #41503 from holidaycheck/bat-darwin
Browse files Browse the repository at this point in the history
bat: support darwin
  • Loading branch information
matthewbauer committed Jun 6, 2018
2 parents e624ebf + 9aba987 commit 907d1de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 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}";
Expand All @@ -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;
};
}

0 comments on commit 907d1de

Please sign in to comment.