bitwarden_rs: fix darwin build

This commit is contained in:
Mario Rodas 2019-05-12 09:54:30 -05:00
parent a2e69f1b06
commit 1e9ad86cd3
No known key found for this signature in database
GPG key ID: 4C4BEFD7B18DC5E8
2 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub, pkgconfig, openssl }:
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, openssl, Security, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "bitwarden_rs";
@ -12,13 +12,13 @@ rustPlatform.buildRustPackage rec {
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ];
buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [ Security CoreServices ];
RUSTC_BOOTSTRAP = 1;
cargoSha256 = "038l6alcdc0g4avpbzxgd2k09nr3wrsbry763bq2c77qqgwldj8r";
meta = with lib; {
meta = with stdenv.lib; {
description = "An unofficial lightweight implementation of the Bitwarden server API using Rust and SQLite";
homepage = https://github.com/dani-garcia/bitwarden_rs;
license = licenses.gpl3;

View file

@ -674,7 +674,9 @@ in
bcachefs-tools = callPackage ../tools/filesystems/bcachefs-tools { };
bitwarden_rs = callPackage ../tools/security/bitwarden_rs { };
bitwarden_rs = callPackage ../tools/security/bitwarden_rs {
inherit (darwin.apple_sdk.frameworks) Security CoreServices;
};
bitwarden_rs-vault = callPackage ../tools/security/bitwarden_rs/vault.nix { };