Skip to content

Commit

Permalink
Add the whitepaper for zathura
Browse files Browse the repository at this point in the history
Co-authored-by: Yuriy Nesterov <[email protected]>
Co-authored-by: Ivan Nikolaenko <[email protected]>

Signed-off-by: Brian McGillion <[email protected]>
  • Loading branch information
brianmcgillion committed Oct 12, 2023
1 parent 789e620 commit 8760fa0
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
8 changes: 5 additions & 3 deletions targets/lenovo-x1-carbon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
}
];
}
({pkgs, ...}: {
({pkgs, ...}: let
demo-pdf = pkgs.callPackage ../user-apps/demo-pdf {};
in {
ghaf.graphics.weston.launchers = [
{
path = "${pkgs.openssh}/bin/ssh -i ${pkgs.waypipe-ssh}/keys/waypipe-ssh -o StrictHostKeyChecking=no chromium-vm.ghaf ${pkgs.waypipe}/bin/waypipe --border \"#ff5733,5\" --vsock -s ${toString guivmConfig.waypipePort} server chromium --enable-features=UseOzonePlatform --ozone-platform=wayland";
Expand All @@ -80,7 +82,7 @@
}

{
path = "${pkgs.openssh}/bin/ssh -i ${pkgs.waypipe-ssh}/keys/waypipe-ssh -o StrictHostKeyChecking=no zathura-vm.ghaf ${pkgs.waypipe}/bin/waypipe --border \"#337aff,5\" --vsock -s ${toString guivmConfig.waypipePort} server zathura";
path = "${pkgs.openssh}/bin/ssh -i ${pkgs.waypipe-ssh}/keys/waypipe-ssh -o StrictHostKeyChecking=no zathura-vm.ghaf ${pkgs.waypipe}/bin/waypipe --border \"#337aff,5\" --vsock -s ${toString guivmConfig.waypipePort} server zathura ${demo-pdf}/Whitepaper.pdf";
icon = "${../assets/icons/png/pdf.png}";
}

Expand Down Expand Up @@ -193,7 +195,7 @@
}
{
name = "zathura";
packages = [pkgs.zathura];
packages = [pkgs.zathura (pkgs.callPackage ../user-apps/demo-pdf {})];
macAddress = "02:00:00:03:07:01";
ramMb = 512;
cores = 1;
Expand Down
Binary file added user-apps/demo-pdf/Whitepaper.pdf
Binary file not shown.
28 changes: 28 additions & 0 deletions user-apps/demo-pdf/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2022-2023 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
{
stdenv,
pkgs,
lib,
...
}:
stdenv.mkDerivation {
name = "demo-pdf";

src = ./Whitepaper.pdf;
phases = ["installPhase"];

installPhase = ''
mkdir -p $out/bin
cp ${./Whitepaper.pdf} $out/Whitepaper.pdf
echo "zathura $out/Whitepaper.pdf" > $out/bin/run-zathura
chmod 755 $out/bin/run-zathura
'';

meta = with lib; {
description = "Demo PDF";
platforms = [
"x86_64-linux"
];
};
}

0 comments on commit 8760fa0

Please sign in to comment.