blob: e5c1e3b231cc762f28d5223d2a794d9c6ebf0e4a (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
stdenvNoCC,
fetchFromGitLab,
bdfresize,
perl,
unifont,
dejavu_fonts,
otf2bdf,
gitUpdater,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "console-setup";
version = "1.235";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "installer-team";
repo = "console-setup";
tag = finalAttrs.version;
hash = "sha256-EGUPj5MesEhC+W6E+8Cute3HtpurwZk0TlcLBReepvI=";
};
buildInputs = [
bdfresize
otf2bdf
perl
];
makeFlags = [ "prefix=${placeholder "out"}" ];
enableParallelBuilding = true;
postPatch = ''
patchShebangs .
substituteInPlace Fonts/Makefile --replace-fail '/usr/share/fonts/truetype/dejavu/' '${dejavu_fonts}/share/fonts/truetype/'
ln -s ${unifont}/share/fonts/unifont.bdf Fonts/bdf
substituteInPlace Fonts/Makefile --replace-fail 'rm -f $(fntdir)/bdf/unifont.bdf' ""
'';
preBuild = "make -j$NIX_BUILD_CORES bdf";
installTargets = [ "install-linux" ];
passthru.updateScript = gitUpdater { };
meta = {
description = "Console font and keymap setup program";
homepage = "https://salsa.debian.org/installer-team/console-setup";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ ners ];
mainProgram = "setupcon";
};
})
|