mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 00:34:00 +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.
34 lines
909 B
Nix
34 lines
909 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "crimson-pro";
|
|
version = "unstable-2022-08-30";
|
|
|
|
outputs = [ "out" "woff2" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Fonthausen";
|
|
repo = "CrimsonPro";
|
|
rev = "24e8f7bf59ec45d77c67879ad80d97e5f94c787b";
|
|
hash = "sha256-3zFB1AMcC7eNEVA2Mx1OE8rLN9zPzexZ3FtER9wH5ss=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -m444 -Dt $out/share/fonts/truetype fonts/ttf/*.ttf
|
|
install -m444 -Dt $out/share/fonts/opentype fonts/otf/*.otf
|
|
install -m444 -Dt $woff2/share/fonts/woff2 fonts/webfonts/*.woff2
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Fonthausen/CrimsonPro";
|
|
description = "Professionally produced redesign of Crimson by Jacques Le Bailly";
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ ncfavier ];
|
|
};
|
|
}
|