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

add skypeforlinux beta (new) #25155

Merged
merged 1 commit into from Apr 24, 2017
Merged

Conversation

PanAeon
Copy link
Contributor

@PanAeon PanAeon commented Apr 23, 2017

Motivation for this change

Add skypeforlinux client. See #25152 for details.

Things done
  • Add skypeforlinux package script (copied most part from slack since they are very similar)
  • Add skypeforlinux to all-packages.nix

What's working (tested): audio calls, group calls, smiles, inline media
What's not working: credentials are not saved to keychain so user need to input them each time skype starts

  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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/)
  • Fits CONTRIBUTING.md.

@PanAeon PanAeon changed the title #25152 add skypeforlinux beta (new) add skypeforlinux beta (new) Apr 23, 2017
description = "Linux client for skype";
homepage = "https://www.skype.com";
license = licenses.unfree;
platforms = [ "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.

Do you want to maintain this package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I'll add myself as a maintainer. I'll try to update pull request later today.


for file in $(find $out -type f \( -perm /0111 -o -name \*.so\* \) ); do
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" || true
patchelf --set-rpath ${rpath}:$out/share/skypeforlinux $file || true
Copy link
Member

Choose a reason for hiding this comment

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

Move patchelf to postFixup phase. Then also using LD_LIBRARY_PATH should be not necessary.
You can also do --set-interpreter and --set-rpath in one shot.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Mic92 I have added postFixup phase. I'm new to nix so could have done something stupid. Please review the new changes. Thnx

@FRidh
Copy link
Member

FRidh commented Apr 24, 2017

How about calling the attribute skypeUnstable instead? It is going to be the next version, replacing the current skype. The name could be skype-unstable-${version}. The expression could also live in the skype/ folder.

@PanAeon
Copy link
Contributor Author

PanAeon commented Apr 24, 2017

@FRidh, well, we can certainly do that, but the two apps don't share much in common. I guess there are people that would prefer keeping old skype client even after the release of the new one. How about skypeforlinux-unstable-$version or even skypeforlinux-beta-$version?

@FRidh
Copy link
Member

FRidh commented Apr 24, 2017

@PanAeon at that point we can use skype_4 and skype_5. Maybe we could use for this one skype_5 as well. I just find the name skypeforlinux really terrible. Note though that we typically keep only one stable version.

@PanAeon
Copy link
Contributor Author

PanAeon commented Apr 24, 2017

@FRidh all right, let's use attribute name skype_5 and name skypeforlinux-beta-$version ? Microsoft calls this client skypeforlinux so I chose this name to avoid any more confusion. The new skype client is more compatible, but it is more "heavyweight" and still lacks some features, such as calls to landline/mobile. Also there exist pidgin integration and skype call recorder, which will not work with the new client. So I don't think we'll get rid of skype 4 soon.

@Mic92
Copy link
Member

Mic92 commented Apr 24, 2017

Upstream names both the package and the executable skypeforlinux. We should not invent new names, because this is what users will looking for.

@Mic92 Mic92 merged commit 331efb3 into NixOS:master Apr 24, 2017
@FRidh FRidh mentioned this pull request Apr 30, 2017
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