diff options
author | Brett Lyons <blyons@fastmail.com> | 2020-02-24 11:08:57 -0700 |
---|---|---|
committer | Brett Lyons <blyons@fastmail.com> | 2020-02-24 14:24:13 -0700 |
commit | bad546f87294d516169d755391f1eff3c203fa4e (patch) | |
tree | 17a9d2c02d5eb3d7835cfa52bcd98c8c07683b3b /pkgs | |
parent | 737995d20a4d214a2c6d537907119a6b90f5c4e6 (diff) |
cozette: init at 1.5.1
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/data/fonts/cozette/default.nix | 55 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/data/fonts/cozette/default.nix b/pkgs/data/fonts/cozette/default.nix new file mode 100644 index 0000000000000..a5d9f90556242 --- /dev/null +++ b/pkgs/data/fonts/cozette/default.nix @@ -0,0 +1,55 @@ +{ stdenv, fetchurl, mkfontscale }: + +let + version = "1.5.1"; + releaseUrl = + "https://github.com/slavfox/Cozette/releases/download/v.${version}"; +in stdenv.mkDerivation rec { + pname = "Cozette"; + inherit version; + + srcs = map fetchurl [ + { + url = "${releaseUrl}/cozette.otb"; + sha256 = "05k45n7jar11gnng2awpmc7zk9jdlzd6wz87xx49cp75jm4z9xm8"; + } + { + url = "${releaseUrl}/CozetteVector.otf"; + sha256 = "1sqhnjpizn1wi26lc7z2zml7yr7zkcpa72mh1drvd74rlcs1ip30"; + } + { + url = "${releaseUrl}/CozetteVector.ttf"; + sha256 = "1q4ml8shv9lmyc6bwhffwvbvl92s73j7xkb0rkqvci4f0zbz7mcy"; + } + ]; + + nativeBuildInputs = [ mkfontscale ]; + + sourceRoot = "./"; + + unpackCmd = '' + otName=$(stripHash "$curSrc") + cp $curSrc ./$otName + ''; + + installPhase = '' + + install -D -m 644 *.otf -t "$out/share/fonts/opentype" + install -D -m 644 *.ttf -t "$out/share/fonts/truetype" + install -D -m 644 *.otb -t "$out/share/fonts/misc" + + mkfontdir "$out/share/fonts/misc" + mkfontscale "$out/share/fonts/truetype" + mkfontscale "$out/share/fonts/opentype" + ''; + + outputs = [ "out" ]; + + meta = with stdenv.lib; { + description = "A bitmap programming font optimized for coziness."; + homepage = "https://github.com/slavfox/cozette"; + license = licenses.mit; + platforms = platforms.all; + maintainers = with maintainers; [ brettlyons ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 94aae71510535..9c8f7fe36898a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17438,6 +17438,8 @@ in corefonts = callPackage ../data/fonts/corefonts { }; + cozette = callPackage ../data/fonts/cozette { }; + culmus = callPackage ../data/fonts/culmus { }; clearlyU = callPackage ../data/fonts/clearlyU |