about summary refs log tree commit diff
path: root/pkgs/tools/nix/manix/default.nix
blob: 082f99f4de74732ce4ccdd936bc611abc88202f4 (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
{
  lib,
  stdenv,
  fetchFromGitHub,
  rustPlatform,
  Security,
}:
rustPlatform.buildRustPackage rec {
  pname = "manix";
  version = "0.7.1";

  src = fetchFromGitHub {
    repo = pname;
    owner = "lecoqjacob";
    rev = "${version}";
    hash = "sha256-kTQbeOIGG1HmbsXKfXw5yCZ49kGufbGiCkkIRMTwcsg=";
  };

  buildInputs = lib.optionals stdenv.isDarwin [Security];
  cargoSha256 = "sha256-7SHUi1qH9Dr4Oi7A6gRmZqhAIr8RzLNU1l1x4WGtQYI=";

  meta = with lib; {
    license = [licenses.mpl20];
    platforms = platforms.unix;
    homepage = "https://github.com/lecoqjacob/manix";
    description = "A Fast Documentation Searcher for Nix";
    maintainers = [maintainers.lecoqjacob];
  };
}