mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
cae1529706
use hash instead of sha256 Co-authored-by: Marc Jakobi <mrcjkb89@outlook.com>
30 lines
691 B
Nix
30 lines
691 B
Nix
{
|
|
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];
|
|
};
|
|
}
|