From a44c757bb740c5faaf0e328afd1c6bc1c666b024 Mon Sep 17 00:00:00 2001 From: IogaMaster Date: Fri, 12 Jan 2024 16:43:46 -0700 Subject: [PATCH] manix: 0.7.1 -> 0.8.0 https://github.com/nix-community/manix Update pkgs/by-name/ma/manix/package.nix Co-authored-by: bryango Update pkgs/by-name/ma/manix/package.nix Co-authored-by: bryango --- pkgs/by-name/ma/manix/package.nix | 26 ++++++++++++++++++++++++++ pkgs/tools/nix/manix/default.nix | 29 ----------------------------- pkgs/top-level/all-packages.nix | 4 ---- 3 files changed, 26 insertions(+), 33 deletions(-) create mode 100644 pkgs/by-name/ma/manix/package.nix delete mode 100644 pkgs/tools/nix/manix/default.nix 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 { };