blob: 5e4b1bec1e6e9beb441b108f754a2d42d2a1bbea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, openssl, cacert, curl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "tealdeer";
version = "1.2.0";
src = fetchFromGitHub {
owner = "dbrgn";
repo = "tealdeer";
rev = "v${version}";
sha256 = "1v9wq4k7k4lmdz6xy6kabchjpbx9lds20yh6va87shypdh9iva29";
};
cargoSha256 = "0rr9mqylcs3nb7wgilp810qia0rv2pnalyhh28q0wnqyz0kqfrzr";
buildInputs = [ openssl cacert curl ]
++ (stdenv.lib.optional stdenv.isDarwin Security);
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";
homepage = "https://github.com/dbrgn/tealdeer";
maintainers = with maintainers; [ davidak ];
license = with licenses; [ asl20 mit ];
platforms = platforms.all;
};
}
|