-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Yuriy Nesterov <[email protected]> Co-authored-by: Ivan Nikolaenko <[email protected]> Signed-off-by: Brian McGillion <[email protected]>
- Loading branch information
1 parent
789e620
commit 8760fa0
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
]; | ||
}; | ||
} |