nixpkgs-suyu/pkgs/tools/misc/tealdeer/default.nix

38 lines
1 KiB
Nix
Raw Normal View History

2019-11-01 03:04:12 +01:00
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, openssl, cacert, curl
, Security
}:
2018-04-11 14:12:47 +02:00
rustPlatform.buildRustPackage rec {
2019-08-31 13:41:23 +02:00
pname = "tealdeer";
2019-11-01 03:04:12 +01:00
version = "1.2.0";
2018-04-11 14:12:47 +02:00
src = fetchFromGitHub {
owner = "dbrgn";
repo = "tealdeer";
rev = "v${version}";
2019-11-01 03:04:12 +01:00
sha256 = "1v9wq4k7k4lmdz6xy6kabchjpbx9lds20yh6va87shypdh9iva29";
2018-04-11 14:12:47 +02:00
};
cargoSha256 = "0rr9mqylcs3nb7wgilp810qia0rv2pnalyhh28q0wnqyz0kqfrzr";
2018-04-11 14:12:47 +02:00
2019-11-01 03:04:12 +01:00
buildInputs = [ openssl cacert curl ]
++ (stdenv.lib.optional stdenv.isDarwin Security);
2018-04-11 14:12:47 +02:00
nativeBuildInputs = [ pkgconfig ];
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
doCheck = false;
meta = with stdenv.lib; {
description = "A very fast implementation of tldr in Rust";
2018-04-11 14:12:47 +02:00
homepage = "https://github.com/dbrgn/tealdeer";
maintainers = with maintainers; [ davidak ];
license = with licenses; [ asl20 mit ];
platforms = platforms.all;
};
}