Skip to content

onlyoffice-desktopeditors-unwrapped: init at 9.0.0 #431070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

spikespaz
Copy link
Contributor

@spikespaz spikespaz commented Aug 5, 2025

This introduces a new package onlyoffice-desktopeditors-unwrapped, extracted from pkgs/by-name/on/onlyoffice-desktopeditors/package.nix. This allows users to use overrideAttrs on the unwrapped version of the package, and then pass it as an input to onlyoffice-desktopeditors.override.

Note, I'm not exactly sure what the convention for an -unwrapped package is, which hooks, if any, should be moved to pkgs/by-name/on/onlyoffice-desktopeditors/package.nix?

  • autoPatchelfHook
  • makeWrapper
  • wrapGAppsHook3

Also moved and updated update.sh, and made the script executable. While I was at it, I ran the script, so this PR also updates the package from 9.0.0 to 9.0.3.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@spikespaz spikespaz force-pushed the u/jacob/onlyoffice-desktopeditors-unwrapped branch from ae9678d to 5478baf Compare August 5, 2025 01:48
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. labels Aug 5, 2025
@nix-owners nix-owners bot requested review from GTrunSec and nh2 August 5, 2025 01:55
];

in
stdenv.mkDerivation (self: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
stdenv.mkDerivation (self: {
stdenv.mkDerivation (finalAttrs: {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you find a quotation that says why self is a bad name for this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you find a quotation that says why self is a bad name for this?

No, it's not bad. The most common pattern in Nixpkgs is finalAttrs so it's good to keep it that way, but it's all up to you.

version = "9.0.3";
minor = null;
src = fetchurl {
url = "https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${self.version}/onlyoffice-desktopeditors_amd64.deb";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
url = "https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${self.version}/onlyoffice-desktopeditors_amd64.deb";
url = "https://github.com/ONLYOFFICE/DesktopEditors/releases/download/v${finalAttrs.version}/onlyoffice-desktopeditors_amd64.deb";

Comment on lines +125 to +129
mkdir -p $out/{bin,lib,share}

mv usr/bin/* $out/bin
mv usr/share/* $out/share/
mv opt/onlyoffice/desktopeditors $out/share
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
mkdir -p $out/{bin,lib,share}
mv usr/bin/* $out/bin
mv usr/share/* $out/share/
mv opt/onlyoffice/desktopeditors $out/share
mkdir -p $out
mv usr/{bin,share} $out
mv opt/onlyoffice/desktopeditors $out/share

Cleanup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants