diff options
Diffstat (limited to 'nixpkgs/pkgs/data/fonts/open-sans/default.nix')
-rw-r--r-- | nixpkgs/pkgs/data/fonts/open-sans/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/fonts/open-sans/default.nix b/nixpkgs/pkgs/data/fonts/open-sans/default.nix new file mode 100644 index 000000000000..ecca50537f1d --- /dev/null +++ b/nixpkgs/pkgs/data/fonts/open-sans/default.nix @@ -0,0 +1,31 @@ +{ lib, fetchFromGitLab }: + +let + pname = "open-sans"; + version = "1.11"; +in fetchFromGitLab { + name = "${pname}-${version}"; + + domain = "salsa.debian.org"; + owner = "fonts-team"; + repo = "fonts-open-sans"; + rev = "debian/1.11-1"; + postFetch = '' + tar xf $downloadedFile --strip=1 + mkdir -p $out/share/fonts/truetype + cp *.ttf $out/share/fonts/truetype + ''; + sha256 = "146ginwx18z624z582lrnhil8jvi9bjg6843265bgxxrfmf75vhp"; + + meta = with lib; { + description = "Open Sans fonts"; + longDescription = '' + Open Sans is a humanist sans serif typeface designed by Steve Matteson, + Type Director of Ascender Corp. + ''; + homepage = "https://www.opensans.com"; + license = licenses.asl20; + platforms = platforms.all; + maintainers = [ maintainers.worldofpeace ]; + }; +} |