nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchFromGitHub }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "crimson";
5 version = "2014.10";
6
7 src = fetchFromGitHub {
8 owner = "skosch";
9 repo = "Crimson";
10 rev = "fonts-october2014";
11 hash = "sha256-Wp9L77q93TRmrAr0P4iH9gm0tqFY0X/xSsuFcd19aAE=";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 install -m444 -Dt $out/share/fonts/opentype "Desktop Fonts/OTF/"*.otf
18 install -m444 -Dt $out/share/doc/${pname}-${version} README.md
19
20 runHook postInstall
21 '';
22
23 meta = with lib; {
24 homepage = "https://github.com/skosch/Crimson";
25 description = "A font family inspired by beautiful oldstyle typefaces";
26 license = licenses.ofl;
27 platforms = platforms.all;
28 maintainers = [ maintainers.rycee ];
29 };
30}