mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
aporetic-bin: init at 1.1.0 (#397867)
This commit is contained in:
commit
3f45f40ef6
2 changed files with 53 additions and 13 deletions
39
pkgs/by-name/ap/aporetic-bin/package.nix
Normal file
39
pkgs/by-name/ap/aporetic-bin/package.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
stdenvNoCC,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "aporetic-bin";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "protesilaos";
|
||||
repo = "aporetic";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-5lPViAo9SztOdds6HEmKJpT17tgcxmU/voXDffxTMDI=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp -r $src/{aporetic-sans-mono,aporetic-sans,aporetic-serif-mono,aporetic-serif} $out/share/fonts/truetype
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/protesilaos/aporetic";
|
||||
description = ''
|
||||
Custom build of Iosevka with different style and metrics than the default. This is the successor to my "Iosevka Comfy" fonts.
|
||||
'';
|
||||
license = lib.licenses.ofl;
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [
|
||||
DamienCassou
|
||||
drupol
|
||||
];
|
||||
};
|
||||
})
|
|
@ -17,9 +17,9 @@ let
|
|||
version = "1.1.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "protesilaos";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-5lPViAo9SztOdds6HEmKJpT17tgcxmU/voXDffxTMDI=";
|
||||
repo = "aporetic";
|
||||
tag = version;
|
||||
hash = "sha256-5lPViAo9SztOdds6HEmKJpT17tgcxmU/voXDffxTMDI=";
|
||||
};
|
||||
privateBuildPlan = src.outPath + "/private-build-plans.toml";
|
||||
makeIosevkaFont =
|
||||
|
@ -45,21 +45,22 @@ let
|
|||
};
|
||||
|
||||
npmDepsHash = "sha256-HeqwpZyHLHdMhd/UfXVBonMu+PhStrLCxAMuP/KuTT8=";
|
||||
|
||||
meta = with lib; {
|
||||
inherit (src.meta) homepage;
|
||||
description = ''
|
||||
Customised build of the Iosevka typeface, with a consistent rounded style and overrides for almost all individual glyphs in both roman (upright) and italic (slanted) variants.
|
||||
'';
|
||||
license = licenses.ofl;
|
||||
platforms = iosevka.meta.platforms;
|
||||
maintainers = [ maintainers.DamienCassou ];
|
||||
};
|
||||
}
|
||||
);
|
||||
});
|
||||
in
|
||||
symlinkJoin {
|
||||
inherit pname version;
|
||||
|
||||
paths = (builtins.map makeIosevkaFont sets);
|
||||
|
||||
meta = {
|
||||
inherit (src.meta) homepage;
|
||||
description = ''
|
||||
Custom build of Iosevka with different style and metrics than the default, successor to my "Iosevka Comfy" fonts
|
||||
'';
|
||||
license = lib.licenses.ofl;
|
||||
platforms = iosevka.meta.platforms;
|
||||
maintainers = [ lib.maintainers.DamienCassou ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue