mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
intel-one-mono: init at 1.2.0 (#232467)
Co-authored-by: Janik <80165193+Janik-Haag@users.noreply.github.com> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
ec1c0a3c29
commit
c016238dad
39
pkgs/data/fonts/intel-one-mono/default.nix
Normal file
39
pkgs/data/fonts/intel-one-mono/default.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ lib, stdenvNoCC, fetchurl, unzip}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "intel-one-mono";
|
||||
version = "1.2.0";
|
||||
|
||||
srcs = [
|
||||
(fetchurl {
|
||||
url = "https://github.com/intel/intel-one-mono/releases/download/V${version}/otf.zip";
|
||||
sha256 = "sha256-VnXIaW77dRXvXB1Vr01xRQDMECltwzF/RMqGgAWnu5M=";
|
||||
})
|
||||
(fetchurl {
|
||||
url = "https://github.com/intel/intel-one-mono/releases/download/V${version}/ttf.zip";
|
||||
sha256 = "sha256-kaz0DePeO8nvKVonYJhs5f2+ps/5Xo5psjg1hoxzaiU=";
|
||||
})
|
||||
];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
nativeBuildInputs = [
|
||||
unzip
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm644 -t $out/share/fonts/truetype/ ttf/*.ttf
|
||||
install -Dm644 -t $out/share/fonts/opentype/ otf/*.otf
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
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${version}";
|
||||
license = licenses.ofl;
|
||||
maintainers = [ maintainers.simoneruffini];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -28317,6 +28317,8 @@ with pkgs;
|
||||
fonts = [ "Inconsolata" ];
|
||||
};
|
||||
|
||||
intel-one-mono = callPackage ../data/fonts/intel-one-mono {};
|
||||
|
||||
input-fonts = callPackage ../data/fonts/input-fonts { };
|
||||
|
||||
inriafonts = callPackage ../data/fonts/inriafonts { };
|
||||
|
Loading…
Reference in New Issue
Block a user