37 lines
815 B
Nix
37 lines
815 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "amy-mono";
|
|
version = "0";
|
|
|
|
src = fetchurl {
|
|
name = "amy-mono";
|
|
url = "https://www.ameliathe1st.gay/docs/AmyMono-Regular.otf";
|
|
hash = "sha256-2P70KiyRZc2xYpjpdLBWgBVYIFa8XYG2YYnPhL/eBhI=";
|
|
recursiveHash = true;
|
|
downloadToTemp = true;
|
|
postFetch = ''
|
|
mkdir $out
|
|
mv $downloadedFile $out/AmyMono-Regular.otf
|
|
'';
|
|
};
|
|
|
|
unpackPhase = ":";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm644 -t "$out/share/fonts/opentype/" "$src/AmyMono-Regular.otf"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Amelia's Amy Mono font";
|
|
homepage = "https://www.ameliathe1st.gay/";
|
|
license = lib.licenses.ofl; # As per our personal messages
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|