Merge pull request #41503 from holidaycheck/bat-darwin

bat: support darwin
This commit is contained in:
Matthew Justin Bauer 2018-06-05 23:27:38 -04:00 committed by GitHub
commit 907d1dee67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};
}