3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #61651 from sondr3/tokei-mac-fix

tokei: fix missing Security framework on macOS
This commit is contained in:
Gabriel Ebner 2019-05-18 10:52:05 +02:00 committed by GitHub
commit c22f09e70b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform, libiconv }:
{ stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }:
rustPlatform.buildRustPackage rec {
pname = "tokei";
@ -13,7 +13,9 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "1xai3jxvs8r3s3v5d5w40miw6nihnj9gzlzzdrwphmgrkywr88c4";
buildInputs = [ libiconv ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
libiconv darwin.apple_sdk.frameworks.Security
];
meta = with stdenv.lib; {
description = "Program that displays statistics about your code";