Skip to content

Commit

Permalink
Merge pull request #209391 from rnhmjoj/pr-bdf2psf
Browse files Browse the repository at this point in the history
bdf2psf: 1.211 -> 1.215
  • Loading branch information
rnhmjoj authored Jan 6, 2023
2 parents 97fe828 + d017848 commit 3ad7b8a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pkgs/tools/misc/bdf2psf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
pname = "bdf2psf";
version = "1.211";
version = "1.215";

src = fetchurl {
url = "mirror://debian/pool/main/c/console-setup/bdf2psf_${version}_all.deb";
sha256 = "sha256-Kzmqnctc2RUMbU3hVGmcfXFWiZhf5epaaj2eW4nVajU=";
sha256 = "+xqxI4qaIJc6z7BcVDcKg4dhc+xH56ZEspWf7UPdHnY=";
};

nativeBuildInputs = [ dpkg ];
Expand All @@ -19,12 +19,14 @@ stdenv.mkDerivation rec {
dpkg-deb -x $src .
runHook postUnpack
'';
installPhase = "

installPhase = ''
runHook preInstall
substituteInPlace usr/bin/bdf2psf --replace /usr/bin/perl ${perl}/bin/perl
mv usr $out
substituteInPlace usr/bin/bdf2psf --replace /usr/bin/perl "${perl}/bin/perl"
rm usr/share/doc/bdf2psf/changelog.gz
mv usr "$out"
runHook postInstall
";
'';

meta = with lib; {
description = "BDF to PSF converter";
Expand All @@ -34,6 +36,6 @@ stdenv.mkDerivation rec {
'';
license = licenses.gpl2Plus;
maintainers = with maintainers; [ rnhmjoj vrthra ];
platforms = platforms.unix;
platforms = platforms.all;
};
}

0 comments on commit 3ad7b8a

Please sign in to comment.