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 the whitepaper for zathura #265

Closed

Conversation

brianmcgillion
Copy link
Collaborator

@brianmcgillion brianmcgillion commented Sep 13, 2023

Add a pdf to showcase zathura in work. using the whitepaper from the demo image

stdenv,
pkgs,
lib,
...
Copy link
Contributor

Choose a reason for hiding this comment

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

You are not using pkgs and lib, and you don't need ....

However, you could add zathura here instead of the above

installPhase = ''
mkdir -p $out/bin
cp ${./Whitepaper.pdf} $out/Whitepaper.pdf
echo "zathura $out/Whitepaper.pdf" > $out/bin/run-zathura
Copy link
Contributor

Choose a reason for hiding this comment

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

Then if you add zathura to the "callPackage-style function call attribute set" above, you can say ${zathura}/bin/zathura here, instead of zathura.


installPhase = ''
mkdir -p $out/bin
cp ${./Whitepaper.pdf} $out/Whitepaper.pdf
Copy link
Contributor

Choose a reason for hiding this comment

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

As you are doing full mkDerivation, you could say cp $src $out/Whitepaper.pdf instead

@@ -134,7 +136,7 @@
}
{
name = "zathura";
packages = [pkgs.zathura];
packages = [pkgs.zathura (pkgs.callPackage ../user-apps/demo-pdf {})];
Copy link
Contributor

Choose a reason for hiding this comment

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

You could also just put demo-pdf here instead of the pkgs.callPackage.

Also Note that you are using pkgs from the host and not from the appvm guest.

@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow October 12, 2023 14:33 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow October 12, 2023 14:36 — with GitHub Actions Inactive
@brianmcgillion
Copy link
Collaborator Author

Just rebased for now

Co-authored-by: Yuriy Nesterov <[email protected]>
Co-authored-by: Ivan Nikolaenko <[email protected]>

Signed-off-by: Brian McGillion <[email protected]>
@brianmcgillion brianmcgillion temporarily deployed to internal-build-workflow October 12, 2023 14:56 — with GitHub Actions Inactive
@brianmcgillion brianmcgillion marked this pull request as draft November 26, 2023 01:57
@brianmcgillion
Copy link
Collaborator Author

dump outdated patch

@brianmcgillion brianmcgillion deleted the add-whitepaper-pdf branch April 26, 2024 07:00
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.

2 participants