From 11464a5611ba140f3ffa7e99fed9d97f710e6c3c Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Fri, 28 Feb 2020 10:56:29 +1000 Subject: [PATCH] tealdeer: 1.2.0 -> 1.3.0 https://github.com/dbrgn/tealdeer/blob/master/CHANGELOG.md#v130-2020-02-28 --- pkgs/tools/misc/tealdeer/default.nix | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/misc/tealdeer/default.nix b/pkgs/tools/misc/tealdeer/default.nix index 5e4b1bec1e6e..aa8f9be38b6d 100644 --- a/pkgs/tools/misc/tealdeer/default.nix +++ b/pkgs/tools/misc/tealdeer/default.nix @@ -1,25 +1,37 @@ -{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, openssl, cacert, curl +{ stdenv +, rustPlatform +, fetchFromGitHub +, pkg-config +, installShellFiles +, openssl +, cacert , Security }: rustPlatform.buildRustPackage rec { pname = "tealdeer"; - version = "1.2.0"; + version = "1.3.0"; src = fetchFromGitHub { owner = "dbrgn"; repo = "tealdeer"; rev = "v${version}"; - sha256 = "1v9wq4k7k4lmdz6xy6kabchjpbx9lds20yh6va87shypdh9iva29"; + sha256 = "0l16qqkrya22nnm4j3dxyq4gb85i3c07p10s00bpqcvki6n6v6r8"; }; - cargoSha256 = "0rr9mqylcs3nb7wgilp810qia0rv2pnalyhh28q0wnqyz0kqfrzr"; + cargoSha256 = "0jvgcf493rmkrh85j0fkf8ffanva80syyxclzkvkrzvvwwj78b5l"; - buildInputs = [ openssl cacert curl ] + buildInputs = [ openssl cacert ] ++ (stdenv.lib.optional stdenv.isDarwin Security); - nativeBuildInputs = [ pkgconfig ]; - + nativeBuildInputs = [ installShellFiles pkg-config ]; + + postInstall = '' + installShellCompletion --bash --name tealdeer.bash bash_tealdeer + installShellCompletion --fish --name tealdeer.fish fish_tealdeer + 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