bdf2psf: fix license, run pre/post hooks

This commit is contained in:
rnhmjoj 2021-02-21 11:08:32 +01:00
parent 2e73ee0c4f
commit 85b236e54a
No known key found for this signature in database
GPG Key ID: BFBAF4C975F76450

View File

@ -14,10 +14,16 @@ stdenv.mkDerivation rec {
dontConfigure = true;
dontBuild = true;
unpackPhase = "dpkg-deb -x $src .";
unpackPhase = ''
runHook preUnpack
dpkg-deb -x $src .
runHook postUnpack
'';
installPhase = "
runHook preInstall
substituteInPlace usr/bin/bdf2psf --replace /usr/bin/perl ${perl}/bin/perl
mv usr $out
runHook postInstall
";
meta = with lib; {
@ -26,7 +32,7 @@ stdenv.mkDerivation rec {
longDescription = ''
Font converter to generate console fonts from BDF source fonts
'';
license = licenses.gpl2;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ rnhmjoj vrthra ];
platforms = platforms.unix;
};