diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-03-09 12:21:50 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-03-21 21:55:16 +0000 |
commit | cf7556eea5a1477c87dbb4caf90cb896ec4d6ee8 (patch) | |
tree | f9855326211215e340579e989e80c95629b64c1c /pkgs/data/fonts/ccsymbols | |
parent | 7667aa9ec64be4062cf15f6795ac4e573b09a7b9 (diff) |
ccsymbols: init at 2020-04-19
Diffstat (limited to 'pkgs/data/fonts/ccsymbols')
-rw-r--r-- | pkgs/data/fonts/ccsymbols/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/data/fonts/ccsymbols/default.nix b/pkgs/data/fonts/ccsymbols/default.nix new file mode 100644 index 0000000000000..a32d35a08852c --- /dev/null +++ b/pkgs/data/fonts/ccsymbols/default.nix @@ -0,0 +1,32 @@ +{ lib, fetchurl, unzip }: + +let + pname = "ccsymbols"; + version = "2020-04-19"; +in + +fetchurl rec { + name = "${pname}-${version}"; + + url = "https://www.ctrl.blog/file/${version}_cc-symbols.zip"; + sha256 = "sha256-mrNgTS6BAVJrIz9fHOjf8pkSbZtZ55UjyoL9tQ1fiA8="; + recursiveHash = true; + + nativeBuildInputs = [ unzip ]; + + downloadToTemp = true; + postFetch = '' + mkdir -p "$out/share/fonts/ccsymbols" + unzip -d "$out/share/fonts/ccsymbols" "$downloadedFile" + ''; + + passthru = { inherit pname version; }; + + meta = with lib; { + description = "Creative Commons symbol font"; + homepage = "https://www.ctrl.blog/entry/creative-commons-unicode-fallback-font.html"; + maintainers = with maintainers; [ qyliss ]; + license = licenses.publicDomain; + platforms = platforms.all; + }; +} |