Merge pull request #38766 from davidak/tealdeer

tealdeer: init at 1.0.0
This commit is contained in:
xeji 2018-04-30 22:58:52 +02:00 committed by GitHub
commit 2f4e3f9064
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -2107,6 +2107,8 @@ with pkgs;
mcrcon = callPackage ../tools/networking/mcrcon {};
tealdeer = callPackage ../tools/misc/tealdeer/default.nix { };
uudeview = callPackage ../tools/misc/uudeview { };
uutils-coreutils = callPackage ../tools/misc/uutils-coreutils {