mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 06:55:10 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, mkfontscale }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "proggyfonts";
|
|
version = "0.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://web.archive.org/web/20150801042353/http://kaictl.net/software/proggyfonts-${version}.tar.gz";
|
|
hash = "sha256-SsLzZdR5icVJNbr5rcCPbagPPtWghbqs2Jxmrtufsa4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ mkfontscale ];
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
# compress pcf fonts
|
|
mkdir -p $out/share/fonts/misc
|
|
rm Speedy.pcf # duplicated as Speedy11.pcf
|
|
for f in *.pcf; do
|
|
gzip -n -9 -c "$f" > $out/share/fonts/misc/"$f".gz
|
|
done
|
|
|
|
install -D -m 644 *.bdf -t "$out/share/fonts/misc"
|
|
install -D -m 644 *.ttf -t "$out/share/fonts/truetype"
|
|
install -D -m 644 Licence.txt -t "$out/share/doc/$name"
|
|
|
|
mkfontscale "$out/share/fonts/truetype"
|
|
mkfontdir "$out/share/fonts/misc"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.upperbounds.net";
|
|
description = "Set of fixed-width screen fonts that are designed for code listings";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.myrl ];
|
|
};
|
|
}
|