diff --git a/doc/release-notes/rl-2511.section.md b/doc/release-notes/rl-2511.section.md index 658135c92af73..184927d1a70fb 100644 --- a/doc/release-notes/rl-2511.section.md +++ b/doc/release-notes/rl-2511.section.md @@ -196,6 +196,8 @@ - `sail-riscv` 0.8 follows [upstream](https://github.com/riscv/sail-riscv/blob/7cc4620eb1a57bfe04832baccdcf5727e9459bd4/doc/ChangeLog.md) and provides only a single binary, `sail_riscv_sim`. +- `moar` has been updated from `1.33.0` to `2.0.0`, and renamed to `moor` following an upstream decision. See the [release notes](https://github.com/walles/moor/releases/tag/v2.0.0) for more. + - `podofo` has been updated from `0.9.8` to `1.0.0`. These releases are by nature very incompatible due to major API changes. The legacy versions can be found under `podofo_0_10` and `podofo_0_9`. Changelog: https://github.com/podofo/podofo/blob/1.0.0/CHANGELOG.md, API-Migration-Guide: https://github.com/podofo/podofo/blob/1.0.0/API-MIGRATION.md. diff --git a/pkgs/by-name/mo/moar/package.nix b/pkgs/by-name/mo/moar/package.nix deleted file mode 100644 index b231f30b2c5b6..0000000000000 --- a/pkgs/by-name/mo/moar/package.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ - lib, - buildGoModule, - fetchFromGitHub, - installShellFiles, -}: - -buildGoModule rec { - pname = "moar"; - version = "1.33.0"; - - src = fetchFromGitHub { - owner = "walles"; - repo = "moar"; - rev = "v${version}"; - hash = "sha256-+06cup9iG+iMyluQPzUQ7vrnFHoeU4KNHGra3AsRRw0="; - }; - - vendorHash = "sha256-ComKeqnw1PvDaCRVXfInRjSzhyZWGkD/hp5piwhwxds="; - - nativeBuildInputs = [ installShellFiles ]; - - postInstall = '' - installManPage ./moar.1 - ''; - - ldflags = [ - "-s" - "-w" - "-X" - "main.versionString=v${version}" - ]; - - meta = with lib; { - description = "Nice-to-use pager for humans"; - homepage = "https://github.com/walles/moar"; - license = licenses.bsd2WithViews; - mainProgram = "moar"; - maintainers = with maintainers; [ foo-dogsquared ]; - }; -} diff --git a/pkgs/by-name/mo/moor/package.nix b/pkgs/by-name/mo/moor/package.nix new file mode 100644 index 0000000000000..15300c4234543 --- /dev/null +++ b/pkgs/by-name/mo/moor/package.nix @@ -0,0 +1,56 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + installShellFiles, + nix-update-script, + pkgsCross, + versionCheckHook, +}: + +buildGoModule (finalAttrs: { + pname = "moor"; + version = "2.6.1"; + + src = fetchFromGitHub { + owner = "walles"; + repo = "moor"; + tag = "v${finalAttrs.version}"; + hash = "sha256-5MiTxspdNTFfLnif5C3gcQ0suxRrjerlZl2+kPAjiBM="; + }; + + vendorHash = "sha256-ve8QT2dIUZGTFYESt9vIllGTan22ciZr8SQzfqtqQfw="; + + nativeBuildInputs = [ installShellFiles ]; + + ldflags = [ + "-s" + "-w" + "-X" + "main.versionString=v${finalAttrs.version}" + ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + + postInstall = '' + installManPage ./moor.1 + ''; + + passthru = { + tests.cross-aarch64 = pkgsCross.aarch64-multiplatform.moor; + updateScript = nix-update-script { }; + }; + + meta = { + description = "Nice-to-use pager for humans"; + homepage = "https://github.com/walles/moor"; + changelog = "https://github.com/walles/moor/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.bsd2WithViews; + mainProgram = "moor"; + maintainers = with lib.maintainers; [ + foo-dogsquared + getchoo + ]; + }; +}) diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index c6286ab8bdbef..0980dc41be0c7 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1761,6 +1761,7 @@ mapAliases { miru = throw "'miru' has been removed due to lack maintenance"; # Added 2025-08-21 mmsd = throw "'mmsd' has been removed due to being unmaintained upstream. Consider using 'mmsd-tng' instead"; # Added 2025-06-07 mmutils = throw "'mmutils' has been removed due to being unmaintained upstream"; # Added 2025-08-29 + moar = lib.warnOnInstantiate "`moar` has been renamed to `moor` by upstream in v2.0.0. See https://github.com/walles/moor/pull/305 for more." pkgs.moor; # Added 2025-09-02 mod_dnssd = throw "'mod_dnssd' has been renamed to/replaced by 'apacheHttpdPackages.mod_dnssd'"; # Converted to throw 2024-10-17 mod_fastcgi = throw "'mod_fastcgi' has been renamed to/replaced by 'apacheHttpdPackages.mod_fastcgi'"; # Converted to throw 2024-10-17 mod_python = throw "'mod_python' has been renamed to/replaced by 'apacheHttpdPackages.mod_python'"; # Converted to throw 2024-10-17