diff options
Diffstat (limited to 'pkgs/by-name/ne')
-rw-r--r-- | pkgs/by-name/ne/neovim-gtk/package.nix | 40 | ||||
-rw-r--r-- | pkgs/by-name/ne/neovim-remote/package.nix | 52 | ||||
-rw-r--r-- | pkgs/by-name/ne/netscanner/package.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/ne/next-ls/package.nix | 54 | ||||
-rw-r--r-- | pkgs/by-name/ne/nexus/nexus-bin.patch | 48 | ||||
-rw-r--r-- | pkgs/by-name/ne/nexus/nexus-vm-opts.patch | 14 | ||||
-rw-r--r-- | pkgs/by-name/ne/nexus/package.nix | 65 | ||||
-rw-r--r-- | pkgs/by-name/ne/nezha-agent/package.nix | 14 |
8 files changed, 283 insertions, 10 deletions
diff --git a/pkgs/by-name/ne/neovim-gtk/package.nix b/pkgs/by-name/ne/neovim-gtk/package.nix new file mode 100644 index 0000000000000..eebb980f85cb5 --- /dev/null +++ b/pkgs/by-name/ne/neovim-gtk/package.nix @@ -0,0 +1,40 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, wrapGAppsHook4 +, pkg-config +, gdk-pixbuf +, gtk4 +, pango +, vte-gtk4 +}: + +rustPlatform.buildRustPackage rec { + pname = "neovim-gtk"; + version = "1.0.4"; + + src = fetchFromGitHub { + owner = "Lyude"; + repo = pname; + rev = "v${version}"; + hash = "sha256-inva7pYwOw3bXvFeKZ4aKSQ65iCat5HxM+NME8jN4/I="; + }; + + cargoHash = "sha256-9eZwCOP4xQtFOieqVRBAdXZrXmzdnae6PexGJ/eCyYc="; + + nativeBuildInputs = [ wrapGAppsHook4 pkg-config ]; + + buildInputs = [ gdk-pixbuf gtk4 pango vte-gtk4 ]; + + postInstall = '' + make PREFIX=$out install-resources + ''; + + meta = with lib; { + description = "Gtk ui for neovim"; + homepage = "https://github.com/Lyude/neovim-gtk"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ aleksana ]; + mainProgram = "nvim-gtk"; + }; +} diff --git a/pkgs/by-name/ne/neovim-remote/package.nix b/pkgs/by-name/ne/neovim-remote/package.nix new file mode 100644 index 0000000000000..f85d379faa85c --- /dev/null +++ b/pkgs/by-name/ne/neovim-remote/package.nix @@ -0,0 +1,52 @@ +{ lib +, fetchFromGitHub +, python3 +, neovim +, fetchpatch +}: + +with python3.pkgs; buildPythonApplication rec { + pname = "neovim-remote"; + version = "2.5.1"; + + src = fetchFromGitHub { + owner = "mhinz"; + repo = "neovim-remote"; + rev = "v${version}"; + sha256 = "0lbz4w8hgxsw4k1pxafrl3rhydrvi5jc6vnsmkvnhh6l6rxlmvmq"; + }; + + patches = [ + # Fix a compatibility issue with neovim 0.8.0 + (fetchpatch { + url = "https://github.com/mhinz/neovim-remote/commit/56d2a4097f4b639a16902390d9bdd8d1350f948c.patch"; + hash = "sha256-/PjE+9yfHtOUEp3xBaobzRM8Eo2wqOhnF1Es7SIdxvM="; + }) + ]; + + propagatedBuildInputs = [ + pynvim + psutil + setuptools + ]; + + nativeCheckInputs = [ + neovim + pytestCheckHook + ]; + + doCheck = !stdenv.isDarwin; + + preCheck = '' + export HOME="$(mktemp -d)" + ''; + + meta = with lib; { + description = "Tool that helps controlling nvim processes from a terminal"; + homepage = "https://github.com/mhinz/neovim-remote/"; + license = licenses.mit; + maintainers = with maintainers; [ edanaher ]; + platforms = platforms.unix; + mainProgram = "nvr"; + }; +} diff --git a/pkgs/by-name/ne/netscanner/package.nix b/pkgs/by-name/ne/netscanner/package.nix index e1d81cf5a9149..516ca5aa11ec9 100644 --- a/pkgs/by-name/ne/netscanner/package.nix +++ b/pkgs/by-name/ne/netscanner/package.nix @@ -6,7 +6,7 @@ }: let pname = "netscanner"; - version = "0.5.1"; + version = "0.5.2"; in rustPlatform.buildRustPackage { inherit pname version; @@ -17,10 +17,10 @@ rustPlatform.buildRustPackage { owner = "Chleba"; repo = "netscanner"; rev = "refs/tags/v${version}"; - hash = "sha256-iRVmazOiUvpl29A0Ju0e2mzFRJtQD7ViY22Jai005nY="; + hash = "sha256-gVwI5dGQqSQf2wR7oKMTRIqseUbAEDTTuQ51S6dvEFw="; }; - cargoHash = "sha256-oH+rU8IZwC8aZ320bIehddPq/+9IYQs+AlZe94LHNYk="; + cargoHash = "sha256-30VSeBbaVWVEO14eUx28HSymfkCxH0IZmEN4cnJ9wIk="; postFixup = '' wrapProgram $out/bin/netscanner \ diff --git a/pkgs/by-name/ne/next-ls/package.nix b/pkgs/by-name/ne/next-ls/package.nix new file mode 100644 index 0000000000000..1a375bfe309f8 --- /dev/null +++ b/pkgs/by-name/ne/next-ls/package.nix @@ -0,0 +1,54 @@ +{ + lib, + + beam_minimal, + fetchFromGitHub, +}: + +let + beamPackages = beam_minimal.packages.erlang_27; + elixir = beamPackages.elixir_1_17; +in + +beamPackages.mixRelease rec { + pname = "next-ls"; + version = "0.23.0"; + + src = fetchFromGitHub { + owner = "elixir-tools"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-wTEf0pxVIT7qmPufAN9vGR9rY31kWjNabYZwKe/hkVU="; + }; + + mixFodDeps = beamPackages.fetchMixDeps { + inherit src version elixir; + pname = "next-ls-deps"; + hash = "sha256-4Rt5Q0fX+fbncvxyXdpIhgEvn9VYX/QDxDdnbanT21Q="; + }; + + inherit elixir; + inherit (beamPackages) erlang; + + removeCookie = false; + + # replace installPhase to change release target + installPhase = '' + runHook preInstall + + mix release --no-deps-check --path $out plain + makeWrapper $out/bin/plain $out/bin/nextls --add-flags "eval \"System.no_halt(true); Application.ensure_all_started(:next_ls)\"" + + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://www.elixir-tools.dev/next-ls/"; + changelog = "https://github.com/elixir-tools/next-ls/releases/tag/v${version}"; + description = "The language server for Elixir that just works"; + license = licenses.mit; + mainProgram = "nextls"; + maintainers = [ maintainers.adamcstephens ]; + platforms = beamPackages.erlang.meta.platforms; + }; +} diff --git a/pkgs/by-name/ne/nexus/nexus-bin.patch b/pkgs/by-name/ne/nexus/nexus-bin.patch new file mode 100644 index 0000000000000..14bcc973aae74 --- /dev/null +++ b/pkgs/by-name/ne/nexus/nexus-bin.patch @@ -0,0 +1,48 @@ +diff --git a/bin/nexus b/bin/nexus +index d06cb44..37c606e 100755 +--- a/bin/nexus ++++ b/bin/nexus +@@ -88,7 +88,7 @@ create_db_entry() { + fi + db_new_file=${db_file}_new + if [ -f "$db_file" ]; then +- awk '$2 != "'"$test_dir"'" {print $0}' $db_file > $db_new_file ++ awk '$2 != "'"$test_dir"'" {print $scriptname}' $db_file > $db_new_file + rm "$db_file" + mv "$db_new_file" "$db_file" + fi +@@ -246,7 +246,7 @@ read_vmoptions() { + + unpack_file() { + if [ -f "$1" ]; then +- jar_file=`echo "$1" | awk '{ print substr($0,1,length-5) }'` ++ jar_file=`echo "$1" | awk '{ print substr($scriptname,1,length-5) }'` + bin/unpack200 -r "$1" "$jar_file" + + if [ $? -ne 0 ]; then +@@ -377,9 +377,14 @@ fi + + old_pwd=`pwd` + +-progname=`basename "$0"` +-linkdir=`dirname "$0"` ++scriptname=$0 + ++if [ ! -z "$ALTERNATIVE_NAME" ]; then ++ scriptname=`dirname "$0"`"/"$ALTERNATIVE_NAME ++fi ++ ++progname=`basename "$scriptname"` ++linkdir=`dirname "$scriptname"` + cd "$linkdir" + prg="$progname" + +@@ -590,7 +595,7 @@ return_code=$? + + ;; + *) +- echo "Usage: $0 {start|stop|run|run-redirect|status|restart|force-reload}" ++ echo "Usage: $scriptname {start|stop|run|run-redirect|status|restart|force-reload}" + exit 1 + ;; + esac diff --git a/pkgs/by-name/ne/nexus/nexus-vm-opts.patch b/pkgs/by-name/ne/nexus/nexus-vm-opts.patch new file mode 100644 index 0000000000000..744b4b96a56bb --- /dev/null +++ b/pkgs/by-name/ne/nexus/nexus-vm-opts.patch @@ -0,0 +1,14 @@ +diff --git a/bin/nexus b/bin/nexus +index e7ed3fb..8db766b 100755 +--- a/bin/nexus ++++ b/bin/nexus +@@ -440,7 +440,8 @@ add_class_path "$app_home/lib/boot/org.apache.karaf.diagnostic.boot-4.0.9.jar" + add_class_path "$app_home/lib/boot/org.apache.karaf.jaas.boot-4.0.9.jar" + + vmoptions_val="" +-read_vmoptions "$prg_dir/$progname.vmoptions" ++VM_OPTS=${VM_OPTS_FILE:-"$prg_dir/$progname.vmoptions"} ++read_vmoptions "$VM_OPTS" + INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS $vmoptions_val" + + diff --git a/pkgs/by-name/ne/nexus/package.nix b/pkgs/by-name/ne/nexus/package.nix new file mode 100644 index 0000000000000..00e4e7325e04c --- /dev/null +++ b/pkgs/by-name/ne/nexus/package.nix @@ -0,0 +1,65 @@ +{ + lib, + stdenv, + fetchurl, + makeWrapper, + jre_headless, + gawk, +}: + +stdenv.mkDerivation rec { + pname = "nexus"; + version = "3.69.0-02"; + + src = fetchurl { + url = "https://download.sonatype.com/nexus/3/nexus-${version}-unix.tar.gz"; + hash = "sha256-7sgLPuM93mFEPlTd3qJY+FGVHErvgcTGJWwSBcqBgWI="; + }; + + preferLocalBuild = true; + + sourceRoot = "${pname}-${version}"; + + nativeBuildInputs = [ makeWrapper ]; + + patches = [ + ./nexus-bin.patch + ./nexus-vm-opts.patch + ]; + + postPatch = '' + substituteInPlace bin/nexus.vmoptions \ + --replace-fail ../sonatype-work /var/lib/sonatype-work \ + --replace-fail etc/karaf $out/etc/karaf \ + --replace-fail =. =$out + ''; + + installPhase = '' + runHook preInstall + + mkdir -p $out + cp -rfv * .install4j $out + rm -fv $out/bin/nexus.bat + + wrapProgram $out/bin/nexus \ + --set JAVA_HOME ${jre_headless} \ + --set ALTERNATIVE_NAME "nexus" \ + --prefix PATH "${lib.makeBinPath [ gawk ]}" + + runHook postInstall + ''; + + meta = { + description = "Repository manager for binary software components"; + homepage = "https://www.sonatype.com/products/sonatype-nexus-oss"; + sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; + license = lib.licenses.epl10; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ + aespinosa + ironpinguin + luftmensch-luftmensch + zaninime + ]; + }; +} diff --git a/pkgs/by-name/ne/nezha-agent/package.nix b/pkgs/by-name/ne/nezha-agent/package.nix index 247e78e802f59..0c50dc4ecef2d 100644 --- a/pkgs/by-name/ne/nezha-agent/package.nix +++ b/pkgs/by-name/ne/nezha-agent/package.nix @@ -7,16 +7,16 @@ }: buildGoModule rec { pname = "nezha-agent"; - version = "0.17.0"; + version = "0.17.3"; src = fetchFromGitHub { owner = "nezhahq"; repo = "agent"; - rev = "v${version}"; - hash = "sha256-xCoCmWdliw7zSxLv8IJl2F03TPMS3dRC40JH1XBirTI="; + rev = "refs/tags/v${version}"; + hash = "sha256-dnmoGf9z7R14Fen7maQyk/H600Hgkx7esGWvjddLDMc="; }; - vendorHash = "sha256-V5ykn/0vXSrCtCX4EEoThXMKE6EVTjc9zXt89G+34N8="; + vendorHash = "sha256-SLF5Oq++VzKzy6mfqJuRlAJMBXyb1EHWN+qoyCw9kv4="; ldflags = [ "-s" @@ -36,10 +36,10 @@ buildGoModule rec { }; }; - meta = with lib; { + meta = { description = "Agent of Nezha Monitoring"; homepage = "https://github.com/nezhahq/agent"; - license = licenses.asl20; - maintainers = with maintainers; [ moraxyc ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ moraxyc ]; }; } |