annotation-mono: init at 0.2
This commit is contained in:
		
							parent
							
								
									93b9cc2e2d
								
							
						
					
					
						commit
						f723d1207e
					
				
							
								
								
									
										33
									
								
								pkgs/by-name/an/annotation-mono/package.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								pkgs/by-name/an/annotation-mono/package.nix
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,33 @@
 | 
			
		||||
{
 | 
			
		||||
  lib,
 | 
			
		||||
  stdenvNoCC,
 | 
			
		||||
  fetchzip,
 | 
			
		||||
}:
 | 
			
		||||
stdenvNoCC.mkDerivation (finalAttrs: {
 | 
			
		||||
  pname = "annotation-mono";
 | 
			
		||||
  version = "0.2";
 | 
			
		||||
 | 
			
		||||
  src = fetchzip {
 | 
			
		||||
    url = "https://github.com/qwerasd205/AnnotationMono/releases/download/v${finalAttrs.version}/AnnotationMono_v${finalAttrs.version}.zip";
 | 
			
		||||
    hash = "sha256-81BcPYE4C9kuetiCzgGPl59WO4QkBML7dwAkD1DCCZo=";
 | 
			
		||||
    stripRoot = false;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  installPhase = ''
 | 
			
		||||
    runHook preInstall
 | 
			
		||||
 | 
			
		||||
    install -D -m444 -t $out/share/fonts/truetype $src/dist/ttf/*.ttf
 | 
			
		||||
    install -D -m444 -t $out/share/fonts/truetype $src/dist/variable/AnnotationMono-VF.ttf
 | 
			
		||||
    install -D -m444 -t $out/share/fonts/opentype $src/dist/otf/*.otf
 | 
			
		||||
 | 
			
		||||
    runHook postInstall
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  meta = {
 | 
			
		||||
    homepage = "https://github.com/qwerasd205/AnnotationMono";
 | 
			
		||||
    description = "Lovingly crafted handwriting-style monospace font";
 | 
			
		||||
    license = lib.licenses.ofl;
 | 
			
		||||
    platforms = lib.platforms.all;
 | 
			
		||||
    maintainers = [ lib.maintainers.theonlymrcat ];
 | 
			
		||||
  };
 | 
			
		||||
})
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user