-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
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
base: master
Are you sure you want to change the base?
onlyoffice-desktopeditors-unwrapped: init at 9.0.0 #431070
Conversation
ae9678d
to
5478baf
Compare
]; | ||
|
||
in | ||
stdenv.mkDerivation (self: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stdenv.mkDerivation (self: { | |
stdenv.mkDerivation (finalAttrs: { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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"; |
mkdir -p $out/{bin,lib,share} | ||
|
||
mv usr/bin/* $out/bin | ||
mv usr/share/* $out/share/ | ||
mv opt/onlyoffice/desktopeditors $out/share |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
This introduces a new package
onlyoffice-desktopeditors-unwrapped
, extracted frompkgs/by-name/on/onlyoffice-desktopeditors/package.nix
. This allows users to useoverrideAttrs
on the unwrapped version of the package, and then pass it as an input toonlyoffice-desktopeditors.override
.Note, I'm not exactly sure what the convention for an
-unwrapped
package is, which hooks, if any, should be moved topkgs/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
passthru.tests
.nixpkgs-review
on this PR. See nixpkgs-review usage../result/bin/
.Add a 👍 reaction to pull requests you find important.