Skip to content

Commit 3f45f40

Browse files
authored
aporetic-bin: init at 1.1.0 (NixOS#397867)
2 parents aadbacd + b3b3e37 commit 3f45f40

File tree

2 files changed

+53
-13
lines changed

2 files changed

+53
-13
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
stdenvNoCC,
3+
lib,
4+
fetchFromGitHub,
5+
}:
6+
7+
stdenvNoCC.mkDerivation (finalAttrs: {
8+
pname = "aporetic-bin";
9+
version = "1.1.0";
10+
11+
src = fetchFromGitHub {
12+
owner = "protesilaos";
13+
repo = "aporetic";
14+
tag = finalAttrs.version;
15+
hash = "sha256-5lPViAo9SztOdds6HEmKJpT17tgcxmU/voXDffxTMDI=";
16+
};
17+
18+
installPhase = ''
19+
runHook preInstall
20+
21+
mkdir -p $out/share/fonts/truetype
22+
cp -r $src/{aporetic-sans-mono,aporetic-sans,aporetic-serif-mono,aporetic-serif} $out/share/fonts/truetype
23+
24+
runHook postInstall
25+
'';
26+
27+
meta = {
28+
homepage = "https://github.com/protesilaos/aporetic";
29+
description = ''
30+
Custom build of Iosevka with different style and metrics than the default. This is the successor to my "Iosevka Comfy" fonts.
31+
'';
32+
license = lib.licenses.ofl;
33+
platforms = lib.platforms.all;
34+
maintainers = with lib.maintainers; [
35+
DamienCassou
36+
drupol
37+
];
38+
};
39+
})

pkgs/by-name/ap/aporetic/package.nix

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ let
1717
version = "1.1.0";
1818
src = fetchFromGitHub {
1919
owner = "protesilaos";
20-
repo = pname;
21-
rev = version;
22-
sha256 = "sha256-5lPViAo9SztOdds6HEmKJpT17tgcxmU/voXDffxTMDI=";
20+
repo = "aporetic";
21+
tag = version;
22+
hash = "sha256-5lPViAo9SztOdds6HEmKJpT17tgcxmU/voXDffxTMDI=";
2323
};
2424
privateBuildPlan = src.outPath + "/private-build-plans.toml";
2525
makeIosevkaFont =
@@ -45,21 +45,22 @@ let
4545
};
4646

4747
npmDepsHash = "sha256-HeqwpZyHLHdMhd/UfXVBonMu+PhStrLCxAMuP/KuTT8=";
48-
49-
meta = with lib; {
50-
inherit (src.meta) homepage;
51-
description = ''
52-
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.
53-
'';
54-
license = licenses.ofl;
55-
platforms = iosevka.meta.platforms;
56-
maintainers = [ maintainers.DamienCassou ];
57-
};
5848
}
5949
);
6050
});
6151
in
6252
symlinkJoin {
6353
inherit pname version;
54+
6455
paths = (builtins.map makeIosevkaFont sets);
56+
57+
meta = {
58+
inherit (src.meta) homepage;
59+
description = ''
60+
Custom build of Iosevka with different style and metrics than the default, successor to my "Iosevka Comfy" fonts
61+
'';
62+
license = lib.licenses.ofl;
63+
platforms = iosevka.meta.platforms;
64+
maintainers = [ lib.maintainers.DamienCassou ];
65+
};
6566
}

0 commit comments

Comments
 (0)