Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 960 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 perl, 6 dpkg, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "bdf2psf"; 11 version = "1.240"; 12 13 src = fetchurl { 14 url = "mirror://debian/pool/main/c/console-setup/bdf2psf_${version}_all.deb"; 15 sha256 = "sha256-TFCTCoWyEUzFQTSObk5SavBH1bTHQaGc5E/z6mtY5yU="; 16 }; 17 18 nativeBuildInputs = [ dpkg ]; 19 20 dontConfigure = true; 21 dontBuild = true; 22 23 installPhase = '' 24 runHook preInstall 25 substituteInPlace usr/bin/bdf2psf --replace /usr/bin/perl "${perl}/bin/perl" 26 rm usr/share/doc/bdf2psf/changelog.gz 27 mv usr "$out" 28 runHook postInstall 29 ''; 30 31 meta = with lib; { 32 description = "BDF to PSF converter"; 33 homepage = "https://packages.debian.org/sid/bdf2psf"; 34 longDescription = '' 35 Font converter to generate console fonts from BDF source fonts 36 ''; 37 license = licenses.gpl2Plus; 38 maintainers = with maintainers; [ rnhmjoj ]; 39 platforms = platforms.all; 40 mainProgram = "bdf2psf"; 41 }; 42}