2024-09-19 14:19:46 +00:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
stdenvNoCC,
|
|
|
|
|
fetchurl,
|
|
|
|
|
unzip,
|
|
|
|
|
}:
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
|
pname = "intel-one-mono";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
version = "1.4.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
|
|
srcs = [
|
|
|
|
|
(fetchurl {
|
|
|
|
|
url = "https://github.com/intel/intel-one-mono/releases/download/V${finalAttrs.version}/otf.zip";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
hash = "sha256-dO+O5mdAPHYHRbwS/F4ssWhFRBlPrT1TQJGcFzqCJ/w=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
})
|
|
|
|
|
(fetchurl {
|
|
|
|
|
url = "https://github.com/intel/intel-one-mono/releases/download/V${finalAttrs.version}/ttf.zip";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
hash = "sha256-VIY1UtJdy5w/U2CylvyYDW4fv9AuDSFCJOi3jworzPA=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
|
nativeBuildInputs = [ unzip ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
runHook preInstall
|
|
|
|
|
install -Dm644 -t $out/share/fonts/truetype/ ttf/*.ttf
|
|
|
|
|
install -Dm644 -t $out/share/fonts/opentype/ otf/*.otf
|
|
|
|
|
runHook postInstall
|
|
|
|
|
'';
|
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
|
meta = {
|
2023-07-15 17:15:38 +00:00
|
|
|
|
description = "Intel One Mono, an expressive monospaced font family that’s built with clarity, legibility, and the needs of developers in mind";
|
|
|
|
|
homepage = "https://github.com/intel/intel-one-mono";
|
|
|
|
|
changelog = "https://github.com/intel/intel-one-mono/releases/tag/V${finalAttrs.version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
license = lib.licenses.ofl;
|
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
|
luftmensch-luftmensch
|
|
|
|
|
simoneruffini
|
|
|
|
|
];
|
|
|
|
|
platforms = lib.platforms.all;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
};
|
|
|
|
|
})
|