1{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin, Security }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "manix";
5 version = "0.6.3";
6
7 src = fetchFromGitHub {
8 owner = "mlvzk";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1b7xi8c2drbwzfz70czddc4j33s7g1alirv12dwl91hbqxifx8qs";
12 };
13
14 buildInputs = lib.optionals stdenv.isDarwin [ Security ];
15
16 cargoSha256 = "1yivx9vzk2fvncvlkwq5v11hb9llr1zlcmy69y12q6xnd9rd8x1b";
17
18 meta = with lib; {
19 description = "A Fast Documentation Searcher for Nix";
20 homepage = "https://github.com/mlvzk/manix";
21 license = [ licenses.mpl20 ];
22 maintainers = [ maintainers.mlvzk ];
23 platforms = platforms.unix;
24 };
25}