Skip to content

Commit

Permalink
console-setup: init at 1.233
Browse files Browse the repository at this point in the history
  • Loading branch information
ners committed Jan 22, 2025
1 parent 81dcfee commit eb8192d
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/by-name/co/console-setup/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
lib,
stdenvNoCC,
fetchzip,
perl,
genericUpdater,
writeShellScript,
}:

stdenvNoCC.mkDerivation rec {
pname = "console-setup";
version = "1.233";

# Git repo: https://salsa.debian.org/installer-team/console-setup.git
# But it seems to be offline
src = fetchzip {
url = "https://sources.debian.org/debian/pool/main/c/console-setup/console-setup_${version}.tar.xz";
hash = "sha256-r0QJs97cTPyOcRbMKDawfQnqFNS7wq5gJBLAg+aipDk=";
};

buildInputs = [ perl ];

makeFlags = [ "prefix=${placeholder "out"}" ];

enableParallelBuilding = true;

postPatch = ''
patchShebangs .
'';

buildTargets = [ "install-linux" ];

installTargets = [ "install-linux" ];

passthru.updateScript = genericUpdater {
versionLister = writeShellScript "console-setup-versionLister" ''
curl -Ls https://sources.debian.org/api/src/console-setup/ | jq --raw-output '.versions.[] | .version'
'';
};

meta = {
description = "Console font and keymap setup program";
homepage = "https://tracker.debian.org/pkg/console-setup";
license = lib.licenses.gpl2;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ ners ];
};
}

0 comments on commit eb8192d

Please sign in to comment.