Merge branch 'master' into staging-next
This commit is contained in:
24
pkgs/data/fonts/courier-prime/default.nix
Normal file
24
pkgs/data/fonts/courier-prime/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ lib, fetchzip }:
|
||||
|
||||
let
|
||||
version = "unstable-2019-12-05";
|
||||
repo = "CourierPrime";
|
||||
rev = "7f6d46a766acd9391d899090de467c53fd9c9cb0";
|
||||
in fetchzip rec {
|
||||
name = "courier-prime-${version}";
|
||||
url = "https://github.com/quoteunquoteapps/${repo}/archive/${rev}/${name}.zip";
|
||||
sha256 = "1xh4pkksm6zrafhb69q4lq093q6pl245zi9qhqw3x6c1ab718704";
|
||||
|
||||
postFetch = ''
|
||||
unzip $downloadedFile
|
||||
install -m444 -Dt $out/share/fonts/truetype ${repo}-${rev}/fonts/ttf/*.ttf
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Monospaced font designed specifically for screenplays";
|
||||
homepage = "https://github.com/quoteunquoteapps/CourierPrime";
|
||||
license = licenses.ofl;
|
||||
maintainers = [ maintainers.austinbutler ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
{ lib, fetchzip, version ? "3.000" }:
|
||||
{ lib, fetchzip, version ? "3.100" }:
|
||||
|
||||
let
|
||||
new = lib.versionAtLeast version "3.000";
|
||||
sha256 = {
|
||||
"2.100" = "1g5f5f9gzamkq3kqyf7vbzvl4rdj3wmjf6chdrbxksrm3rnb926z";
|
||||
"3.000" = "12sd2mjqb80ijc73y7p0iw6j3wy9i60a3aar3ywrxz4khpya48jw";
|
||||
"3.100" = "0svnc7l3z3vvm27zx6msyx56n2fpv6ywb5lm75bym48slkccypn7";
|
||||
}."${version}";
|
||||
|
||||
in fetchzip rec {
|
||||
|
||||
Reference in New Issue
Block a user