tweak project proposal #1
					 4 changed files with 38 additions and 21 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1,3 +1,4 @@
 | 
				
			||||||
 | 
					result
 | 
				
			||||||
*.err
 | 
					*.err
 | 
				
			||||||
*.odt
 | 
					*.odt
 | 
				
			||||||
*.html
 | 
					*.html
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										16
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
					@ -1,11 +1,11 @@
 | 
				
			||||||
# fediversity proposal
 | 
					# Fediversity project proposal
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## usage
 | 
					Build a PDF:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```sh
 | 
					> **Note**
 | 
				
			||||||
nix-shell
 | 
					>
 | 
				
			||||||
pandoc architecture.md -o architecture.html
 | 
					> It will take a while to download dependencies!
 | 
				
			||||||
pandoc architecture.html -o architecture.pdf
 | 
					
 | 
				
			||||||
| 
							
							
								
									
	
 | 
					|||||||
pandoc --filter pandoc-include fediversity.md -o fediversity.html
 | 
					```bash
 | 
				
			||||||
pandoc fediversity.html -o fediversity.pdf
 | 
					nix-build -A pdf
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										28
									
								
								default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,28 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  pkgs ? import <nixpkgs> { },
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  shell = pkgs.mkShellNoCC {
 | 
				
			||||||
 | 
					    packages = with pkgs; [
 | 
				
			||||||
 | 
					      pandoc
 | 
				
			||||||
 | 
					      pandoc-include
 | 
				
			||||||
 | 
					      texliveMedium
 | 
				
			||||||
 | 
					      librsvg
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					  pdf =
 | 
				
			||||||
 | 
					    pkgs.runCommand "fediversity"
 | 
				
			||||||
 | 
					      {
 | 
				
			||||||
 | 
					        buildInputs = with pkgs; [
 | 
				
			||||||
 | 
					          pandoc
 | 
				
			||||||
 | 
					          pandoc-include
 | 
				
			||||||
 | 
					          texliveMedium
 | 
				
			||||||
 | 
					          librsvg
 | 
				
			||||||
 | 
					        ];
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      ''
 | 
				
			||||||
 | 
					        mkdir -p $out
 | 
				
			||||||
 | 
					        pandoc ${./architecture.md} -o $out/architecture.pdf
 | 
				
			||||||
 | 
					        pandoc --filter pandoc-include ${./fediversity.md} -o $out/fediversity.pdf
 | 
				
			||||||
 | 
					      '';
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										14
									
								
								shell.nix
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								shell.nix
									
										
									
									
									
								
							| 
						 | 
					@ -1,13 +1 @@
 | 
				
			||||||
{
 | 
					(import ./. { }).shell
 | 
				
			||||||
  pkgs ? import <nixpkgs> { },
 | 
					 | 
				
			||||||
}:
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  shell = pkgs.mkShellNoCC {
 | 
					 | 
				
			||||||
    packages = with pkgs; [
 | 
					 | 
				
			||||||
      pandoc
 | 
					 | 
				
			||||||
      pandoc-include
 | 
					 | 
				
			||||||
      texliveMedium
 | 
					 | 
				
			||||||
      librsvg
 | 
					 | 
				
			||||||
    ];
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	
Seems like the
nix-build -A pdfthing got lost in cherry- and nit-picks?was it ever tested? on my end it just errored out on images requiring network access, at which point i considered it not usable as-is
note that the script is present still, at present it's just undocumented