2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl, dpkg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bdf2psf";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.210";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/c/console-setup/bdf2psf_${version}_all.deb";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-7kHUwKQoNCHphZiUs3jwYeosiL5Kxp3rimOJX8PmwJk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ dpkg ];
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
unpackPhase = ''
|
|
|
|
runHook preUnpack
|
|
|
|
dpkg-deb -x $src .
|
|
|
|
runHook postUnpack
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = "
|
2021-02-22 21:28:39 +00:00
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
substituteInPlace usr/bin/bdf2psf --replace /usr/bin/perl ${perl}/bin/perl
|
|
|
|
mv usr $out
|
2021-02-22 21:28:39 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "BDF to PSF converter";
|
|
|
|
homepage = "https://packages.debian.org/sid/bdf2psf";
|
|
|
|
longDescription = ''
|
|
|
|
Font converter to generate console fonts from BDF source fonts
|
|
|
|
'';
|
2021-02-22 21:28:39 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ rnhmjoj vrthra ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|