Skip to content
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

Synology Drive Client: init at 2.0.4 #123493

Closed
wants to merge 4 commits into from

Conversation

jcouyang
Copy link
Member

Motivation for this change

Add Synology Drive Client

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

}:

stdenv.mkDerivation {
name = "synology-drive-client";
Copy link
Member

Choose a reason for hiding this comment

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

this should be pname, name includes the version

dontWrapQtApps = true;

meta = with stdenv.lib; {
description = "synology drive client";
Copy link
Member

Choose a reason for hiding this comment

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

Should be a bit more descriptive rather than restating the name of the package (see here)


version = "2.0.4";

system = "x86_64-linux";
Copy link
Member

Choose a reason for hiding this comment

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

What is this supposed to do that meta.platforms doesn't?

sha256 = "01f9qgqkd6m3idr5f0w2k5cl9sjk7617fzp023d0qfnsw661wy56";
})
(fetchurl {
url = "https://global.download.synology.com/download/Utility/SynologyDriveClient/2.0.4-11112/Ubuntu/Installer/x86_64/synology-drive-client-11112.x86_64.deb";
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice if this url was based on the version rather than hardcoded

@Synthetica9
Copy link
Member

Oh also, please follow the commit message conventions, so for your commits it would be

  • synology-drive-client: init at 2.0.4
  • maintainers: add jcouyang

Comment on lines +1 to +2
{
stdenv
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
{
stdenv
{ stdenv

Comment on lines +21 to +25
versionNumber = "2.0.4";
in stdenv.mkDerivation {
pname = "synology-drive-client";

version = versionNumber;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
versionNumber = "2.0.4";
in stdenv.mkDerivation {
pname = "synology-drive-client";
version = versionNumber;
in stdenv.mkDerivation {
pname = "synology-drive-client";
version = "2.0.4";

Comment on lines +68 to +69
rm -rf $out/usr/lib/nautilus
rm -rf $out/opt/Synology/SynologyDrive/package/cloudstation/icon-overlay
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
rm -rf $out/usr/lib/nautilus
rm -rf $out/opt/Synology/SynologyDrive/package/cloudstation/icon-overlay
rm -r $out/usr/lib/nautilus
rm -r $out/opt/Synology/SynologyDrive/package/cloudstation/icon-overlay

done
rm -rf $out/usr/lib/nautilus
rm -rf $out/opt/Synology/SynologyDrive/package/cloudstation/icon-overlay
cp -r $out/usr/bin $out/bin
Copy link
Member

Choose a reason for hiding this comment

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

We should probably copy the files out of opt.

dontWrapQtApps = true;

meta = with lib; {
description = "Desktop application to synchronize files and folders between the computer and the Synology Drive server to access, browse, and share files via file browser";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
description = "Desktop application to synchronize files and folders between the computer and the Synology Drive server to access, browse, and share files via file browser";
description = "Desktop application to synchronize files and folders between the computer and the Synology Drive server";

otherwise it is a bit long. Maybe add the full to longDescription.

@jcouyang
Copy link
Member Author

jcouyang commented Nov 5, 2021

close for #144706 new version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants