mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
mini-redis: init at 0.4.1 (#405626)
This commit is contained in:
commit
bd13acdd67
2 changed files with 49 additions and 0 deletions
|
@ -17753,6 +17753,12 @@
|
||||||
githubId = 41154684;
|
githubId = 41154684;
|
||||||
name = "nokazn";
|
name = "nokazn";
|
||||||
};
|
};
|
||||||
|
nomaterials = {
|
||||||
|
email = "nomaterials@gmail.com";
|
||||||
|
github = "no-materials";
|
||||||
|
githubId = 16938952;
|
||||||
|
name = "nomaterials";
|
||||||
|
};
|
||||||
nomeata = {
|
nomeata = {
|
||||||
email = "mail@joachim-breitner.de";
|
email = "mail@joachim-breitner.de";
|
||||||
github = "nomeata";
|
github = "nomeata";
|
||||||
|
|
43
pkgs/by-name/mi/mini-redis/package.nix
Normal file
43
pkgs/by-name/mi/mini-redis/package.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
rustPlatform,
|
||||||
|
fetchCrate,
|
||||||
|
pkg-config,
|
||||||
|
openssl,
|
||||||
|
versionCheckHook,
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
|
pname = "mini-redis";
|
||||||
|
version = "0.4.1";
|
||||||
|
|
||||||
|
src = fetchCrate {
|
||||||
|
inherit (finalAttrs) pname version;
|
||||||
|
sha256 = "sha256-vYphaQNMAHajod5oT/T3VJ12e6Qk5QOa5LQz6KsXvm8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-oGyJxNzJX7PwMkDoT9Tb3xF0vWgQwuyIjKPgEkbPKyI=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
openssl
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeInstallCheckInputs = [
|
||||||
|
versionCheckHook
|
||||||
|
];
|
||||||
|
doInstallCheck = true;
|
||||||
|
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Incomplete, idiomatic implementation of a Redis client and server built with Tokio, for learning purposes";
|
||||||
|
homepage = "https://github.com/tokio-rs/mini-redis";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ nomaterials ];
|
||||||
|
mainProgram = "mini-redis-cli";
|
||||||
|
};
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue