mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-02 21:54:45 +00:00
Before: ``` $ nix-store --query --references /nix/store/6qy18gy0p48wmpbnck5wbi9xlybikm26-unifont-17.0.05 /nix/store/vx1iq0xf9xndaqgxb8j1nvg0xhpf0506-unifont-17.0.05-bin ``` After: ``` $ nix-store --query --references /nix/store/vqampy54ia0zyndnl56ks46gnmjsyvxf-unifont-17.0.05 (no output) ```
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitLab,
|
|
bdfresize,
|
|
perl,
|
|
unifont,
|
|
dejavu_fonts,
|
|
otf2bdf,
|
|
gitUpdater,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "console-setup";
|
|
version = "1.242";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "salsa.debian.org";
|
|
owner = "installer-team";
|
|
repo = "console-setup";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-5PV1Mbg7ZGQsotwnBVz8DI77Y8ULCnoTANqBLlP3YrE=";
|
|
};
|
|
|
|
buildInputs = [
|
|
bdfresize
|
|
otf2bdf
|
|
perl
|
|
unifont.bin
|
|
];
|
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postPatch = ''
|
|
patchShebangs .
|
|
substituteInPlace Fonts/Makefile --replace-fail '/usr/share/fonts/truetype/dejavu/' '${dejavu_fonts}/share/fonts/truetype/'
|
|
substituteInPlace Fonts/Makefile --replace-fail '/usr/share/unifont/' '${unifont.doc}/share/unifont/'
|
|
'';
|
|
|
|
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";
|
|
};
|
|
})
|