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

beamerpresenter: init at 0.1.1 #92480

Merged
merged 1 commit into from Jul 7, 2020
Merged

Conversation

pacien
Copy link
Contributor

@pacien pacien commented Jul 6, 2020

Motivation for this change

This creates a package for BeamerPresenter, a PDF presentation viewer.

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/)
    • Could load a PDF presentation and its notes
    • Icon and desktop item registration verified
  • 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.

CC: @minijackson

Copy link
Member

@minijackson minijackson left a comment

Choose a reason for hiding this comment

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

nix-review builds, I can open PDFs, use the basic functionalities, and the desktop menu works with the correct icon! 👍

@ehmry
Copy link
Contributor

ehmry commented Jul 6, 2020

Cool, works for me.

Comment on lines 29 to 30
install -m644 man/beamerpresenter.1 -Dt $out/share/man/man1/
install -m644 man/beamerpresenter.conf.5 -Dt $out/share/man/man5/
Copy link
Contributor

Choose a reason for hiding this comment

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

Use installManPage from installShellFiles.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced and amended.

sha256 = "0j7wx3qqwhda33ig2464bi0j0a473y5p7ndy5f7f8x9cqdal1d01";
};

enableParallelBuilding = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be removed, parallel building is used by default for qmake.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed and amended.

Comment on lines +35 to +44
desktopItem = makeDesktopItem {
name = pname;
desktopName = "BeamerPresenter";
genericName = "Beamer presentation viewer";
comment = "Simple dual screen pdf presentation software";
icon = "beamerpresenter";
categories = "Office;";
exec = "beamerpresenter %F";
mimeType = "application/pdf;application/x-pdf;";
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't hurt to ask upstream to include a .desktop file, so that not every distribution has to define their own ;).

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 idea; I opened a PR upstream: stiglers-eponym/BeamerPresenter#4

Copy link
Contributor

@danieldk danieldk left a comment

Choose a reason for hiding this comment

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

Result of nixpkgs-review pr 92480 1

1 package built:
- beamerpresenter

Thanks a lot for making the changes!

@danieldk danieldk merged commit 7c162b0 into NixOS:master Jul 7, 2020
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