diff options
author | davidak <git@davidak.de> | 2018-04-11 14:12:47 +0200 |
---|---|---|
committer | davidak <git@davidak.de> | 2018-04-11 17:11:01 +0200 |
commit | a45dad98119c69644d61e77e3c011e975aa7f4cb (patch) | |
tree | e0106066892d74141ce3c71f99363b3f6182190d /pkgs/tools/misc/tealdeer | |
parent | 726ee1dbb8fcca6a71998a0e828b09f5a2c00944 (diff) |
tealdeer: init at 1.0.0
Diffstat (limited to 'pkgs/tools/misc/tealdeer')
-rw-r--r-- | pkgs/tools/misc/tealdeer/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/misc/tealdeer/default.nix b/pkgs/tools/misc/tealdeer/default.nix new file mode 100644 index 0000000000000..fe0aa6cc30890 --- /dev/null +++ b/pkgs/tools/misc/tealdeer/default.nix @@ -0,0 +1,34 @@ +{ stdenv, rustPlatform, fetchFromGitHub, pkgconfig, openssl, cacert, curl }: + +rustPlatform.buildRustPackage rec { + name = "tealdeer-${version}"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "dbrgn"; + repo = "tealdeer"; + rev = "v${version}"; + sha256 = "0mkcja9agkbj2i93hx01r77w66ca805v4wvivcnrqmzid001717v"; + }; + + cargoSha256 = "1qrvic7b6g3f3gjzx7x97ipp7ppa79c0aawn0lsav0c9xxzl44jq"; + + buildInputs = [ openssl cacert curl ]; + + 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 = "An implementation of tldr in Rust"; + homepage = "https://github.com/dbrgn/tealdeer"; + maintainers = with maintainers; [ davidak ]; + license = with licenses; [ asl20 mit ]; + platforms = platforms.all; + }; +} |