tealdeer: cleanup

This commit is contained in:
zowoq 2020-07-24 10:26:31 +10:00
parent c343d71fca
commit 7b6b361ee9

View file

@ -4,7 +4,6 @@
, pkg-config
, installShellFiles
, openssl
, cacert
, Security
}:
@ -21,8 +20,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0jvgcf493rmkrh85j0fkf8ffanva80syyxclzkvkrzvvwwj78b5l";
buildInputs = [ openssl cacert ]
++ (stdenv.lib.optional stdenv.isDarwin Security);
buildInputs = if stdenv.isDarwin then [ Security ] else [ openssl ];
nativeBuildInputs = [ installShellFiles pkg-config ];
@ -32,8 +30,6 @@ rustPlatform.buildRustPackage rec {
installShellCompletion --zsh --name _tealdeer zsh_tealdeer
'';
NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
# disable tests for now since one needs network
# what is unavailable in sandbox build
# and i can't disable just this one
@ -44,6 +40,5 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/dbrgn/tealdeer";
maintainers = with maintainers; [ davidak ];
license = with licenses; [ asl20 mit ];
platforms = platforms.all;
};
}