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

vk-messenger: init #45605

Merged
merged 1 commit into from Oct 8, 2018
Merged

vk-messenger: init #45605

merged 1 commit into from Oct 8, 2018

Conversation

ghost
Copy link

@ghost ghost commented Aug 24, 2018

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-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)
  • Fits CONTRIBUTING.md.

Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

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

What does the change to pkgs/applications/networking/instant-messengers/franz/default.nix have to do with vk-messenger?

src = {
name = "${name}.deb";
i686-linux = fetchurl {
url = "https://desktop.userapi.com/get_last?platform=linux32&branch=master&packet=deb";
Copy link
Member

Choose a reason for hiding this comment

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

get_last? master?? The hash will change which will break the package.

Copy link
Author

Choose a reason for hiding this comment

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

@dotlambda ok, I'll try to find packages archives

Copy link
Author

@ghost ghost Aug 27, 2018

Choose a reason for hiding this comment

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

@dotlambda
As of official urls
https://desktop.userapi.com/debian/pool/master/v/vk/
https://desktop.userapi.com/rpm/master/
https://desktop.userapi.com/linux64/master/

Only https://desktop.userapi.com/rpm/master/ keeps archives so I took that one. Unfortunately it doesn't ship arm version, so I dropped support for arm

meta = with stdenv.lib; {
description = "Simple and Convenient Messaging App for VK";
homepage = https://vk.com/messenger;
license = licenses.free;
Copy link
Member

Choose a reason for hiding this comment

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

You sure?

Copy link
Contributor

@Yardanico Yardanico Aug 25, 2018

Choose a reason for hiding this comment

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

@dotlambda this is not right, but VK Messenger doesn't really have a defined license

Copy link
Author

Choose a reason for hiding this comment

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

@dotlambda @Yardanico dunno what license it has. Inside the package by share/doc/vk/copyright path there is

Copyright (c) 2013-2017 GitHub Inc.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copy link
Member

Choose a reason for hiding this comment

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

Well, VK Messenger is certainly not made by GitHub. That doesn't seem to be the correct license. And unless you know where to find the source, it's certainly unfree.

stdenv.mkDerivation rec {
name = "vk-messenger-3.9.0";
src = {
name = "${name}.deb";
Copy link
Member

Choose a reason for hiding this comment

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

Use let.

@ghost
Copy link
Author

ghost commented Aug 26, 2018

@dotlambda

What does the change to pkgs/applications/networking/instant-messengers/franz/default.nix have to do with vk-messenger?

It's another package I maintain, also electron based. Why not touch it while there?

@dotlambda
Copy link
Member

It's another package I maintain, also electron based. Why not touch it while there?

Do so in a separate PR.

@ghost
Copy link
Author

ghost commented Aug 27, 2018

@dotlambda Fixed, thanks!

@matthewbauer matthewbauer merged commit 3d188ee into NixOS:master Oct 8, 2018
@ghost
Copy link
Author

ghost commented Oct 8, 2018

@matthewbauer Thanks!

@ghost ghost deleted the vk branch October 8, 2018 19:04
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