Skip to content

Commit

Permalink
console-setup: init at 1.234
Browse files Browse the repository at this point in the history
  • Loading branch information
ners committed Feb 6, 2025
1 parent 567ac5a commit dbef664
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions pkgs/by-name/co/console-setup/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
lib,
stdenvNoCC,
fetchFromGitLab,
bdfresize,
perl,
unifont,
dejavu_fonts,
otf2bdf,
gitUpdater,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
pname = "console-setup";
version = "1.234";

src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "installer-team";
repo = "console-setup";
rev = finalAttrs.version;
hash = "sha256-Sd2/bSBv7kb7CiPYGdK/3AkZQtIY0bCVSN7pGZzyvfM=";
};

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 ];
};
})

0 comments on commit dbef664

Please sign in to comment.