diff --git a/pkgs/by-name/ma/manix/package.nix b/pkgs/by-name/ma/manix/package.nix new file mode 100644 index 000000000000..aca3846761bb --- /dev/null +++ b/pkgs/by-name/ma/manix/package.nix @@ -0,0 +1,26 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "manix"; + version = "0.8.0"; + + src = fetchFromGitHub { + owner = "nix-community"; + repo = "manix"; + rev = "v${version}"; + hash = "sha256-b/3NvY+puffiQFCQuhRMe81x2wm3vR01MR3iwe/gJkw="; + }; + + cargoHash = "sha256-45cb0yO/ypGLcvEgPOkN6Py99yqK09xnCmMOLOOYYSA="; + + meta = with lib; { + description = "A fast CLI documentation searcher for Nix"; + homepage = "https://github.com/nix-community/manix"; + license = licenses.mpl20; + maintainers = with maintainers; [ iogamaster lecoqjacob ]; + mainProgram = "manix"; + }; +} diff --git a/pkgs/tools/nix/manix/default.nix b/pkgs/tools/nix/manix/default.nix deleted file mode 100644 index 082f99f4de74..000000000000 --- a/pkgs/tools/nix/manix/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ - 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]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 22833f1199d0..f9664d7db3fe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10796,10 +10796,6 @@ with pkgs; inherit (python3Packages) mako; }; - manix = callPackage ../tools/nix/manix { - inherit (darwin.apple_sdk.frameworks) Security; - }; - marktext = callPackage ../applications/misc/marktext { }; mars-mips = callPackage ../development/tools/mars-mips { };