Use just for repetitive tasks.
This commit is contained in:
		
							parent
							
								
									71fd3789c8
								
							
						
					
					
						commit
						b653ea2d08
					
				
					 2 changed files with 13 additions and 4 deletions
				
			
		|  | @ -11,12 +11,13 @@ | ||||||
|         pkgs = nixpkgs.legacyPackages.${system}; |         pkgs = nixpkgs.legacyPackages.${system}; | ||||||
|         themeName = "hermit_zola"; |         themeName = "hermit_zola"; | ||||||
|     in |     in | ||||||
|  |     with pkgs; | ||||||
|     { |     { | ||||||
|         packages.blog = pkgs.stdenv.mkDerivation rec { |         packages.blog = stdenv.mkDerivation rec { | ||||||
|             pname = "annotated-annals"; |             pname = "annotated-annals"; | ||||||
|             version = "2022-08-28"; |             version = "2022-08-28"; | ||||||
|             src = ./.; |             src = ./.; | ||||||
|             nativeBuildInputs = [ pkgs.zola ]; |             nativeBuildInputs = [ zola ]; | ||||||
|             configurePhase = '' |             configurePhase = '' | ||||||
|                   mkdir -p "themes/${themeName}" |                   mkdir -p "themes/${themeName}" | ||||||
|                   cp -r ${hermit-zola}/* "themes/${themeName}" |                   cp -r ${hermit-zola}/* "themes/${themeName}" | ||||||
|  | @ -27,8 +28,8 @@ | ||||||
| 
 | 
 | ||||||
|         defaultPackage = self.packages.${system}.blog; |         defaultPackage = self.packages.${system}.blog; | ||||||
| 
 | 
 | ||||||
|         devShell = pkgs.mkShell { |         devShell = mkShell { | ||||||
|             packages = [ pkgs.zola ]; |             packages = [ just zola ]; | ||||||
|             shellHook = '' |             shellHook = '' | ||||||
|                 ln -fsn "${hermit-zola}" "themes/${themeName}" |                 ln -fsn "${hermit-zola}" "themes/${themeName}" | ||||||
|             ''; |             ''; | ||||||
|  |  | ||||||
							
								
								
									
										8
									
								
								justfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								justfile
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | ||||||
|  | finish message: | ||||||
|  |     git add . | ||||||
|  |     git commit -m "{{message}}" | ||||||
|  |     git push | ||||||
|  | 
 | ||||||
|  | create passage: | ||||||
|  |     cd content/bible_journal && cp _template.txt "{{passage}}.md" | ||||||
|  |     vi "content/bible_journal/{{passage}}.md" | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue