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

signal-desktop: init at 1.0.35 #31335

Merged
merged 2 commits into from Nov 7, 2017

Conversation

ixmatus
Copy link
Contributor

@ixmatus ixmatus commented Nov 6, 2017

Motivation for this change

The Signal Desktop application was recently released and the community has no derivation for it.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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/)
  • Fits CONTRIBUTING.md.

@ixmatus ixmatus mentioned this pull request Nov 6, 2017
8 tasks
Copy link
Contributor

@NickHu NickHu left a comment

Choose a reason for hiding this comment

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

It's a shame we both decided to package this on the same day, within 2 hours of each other...


# Patch signal
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/libexec/signal-desktop
patchelf --set-rpath ${rpath}:$out/libexec $out/libexec/signal-desktop
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps better to just use one patchelf invocation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point.

xlibs.libxcb
zulu
zulu8
] + ":${stdenv.cc.cc.lib}/lib64";
Copy link
Contributor

Choose a reason for hiding this comment

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

Quite a few unnecessary imports here, see #31337 for a minimal set

unpackPhase = "true";
buildCommand = ''
mkdir -p $out
dpkg -x $src $out
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be in the unpackPhase

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, good point.

'';

meta = {
description = "Signal messenger for the desktop.";
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the branding is Signal Desktop or something like that. Better to ask someone who knows?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used what you had for the description in your PR.

@ixmatus
Copy link
Contributor Author

ixmatus commented Nov 7, 2017

Thank you for the review @NickHu!

@NeQuissimus NeQuissimus merged commit 3c3e1db into NixOS:master Nov 7, 2017
@NeQuissimus
Copy link
Member

Thanks guys!

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

Successfully merging this pull request may close these issues.

None yet

3 participants