nixpkgs/pkgs/by-name/en/encode-sans/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

37 lines
1.1 KiB
Nix

{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "encode-sans";
version = "1.002";
src = fetchzip {
url = "https://github.com/impallari/Encode-Sans/archive/11162b46892d20f55bd42a00b48cbf06b5871f75.zip";
hash = "sha256-TPAUc5msAUgJZHibjgYaS2TOuzKFy0rje9ZQTXE6s+w=";
};
installPhase = ''
runHook preInstall
install -Dm644 *.ttf -t $out/share/fonts/truetype
install -Dm644 README.md FONTLOG.txt -t $out/share/doc/${pname}-${version}
runHook postInstall
'';
meta = with lib; {
description = "Versatile sans serif font family";
longDescription = ''
The Encode Sans family is a versatile workhorse. Featuring a huge range of
weights and widths, it's ready for all kind of typographic challenges. It
also includes Tabular and Old Style figures, as well as full set of Small
Caps and other Open Type features.
Designed by Pablo Impallari and Andres Torresi.
'';
homepage = "https://github.com/impallari/Encode-Sans";
license = licenses.ofl;
maintainers = with maintainers; [ cmfwyp ];
platforms = platforms.all;
};
}