data/fonts: cleanup

* make font derivations fixed-output where applicable
 * fix dead links
 * `stdenv.lib` -> `lib` where `stdenv` is not involved
 * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
This commit is contained in:
volth
2019-05-13 06:03:31 +00:00
parent 1df1834dd1
commit c9eb44eab3
177 changed files with 789 additions and 929 deletions
+12 -12
View File
@@ -1,22 +1,22 @@
{ stdenv, fetchFromGitHub }:
{ lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
let
pname = "samim-fonts";
version = "3.1.0";
in fetchFromGitHub rec {
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "rastikerdar";
repo = "samim-font";
rev = "v${version}";
sha256 = "1mp0pgbn9r098ilajwzag7c21shwb13mq61ly9av0mfbpnhkkjqk";
};
owner = "rastikerdar";
repo = "samim-font";
rev = "v${version}";
installPhase = ''
mkdir -p $out/share/fonts/samim-fonts
cp -v $( find . -name '*.ttf') $out/share/fonts/samim-fonts
postFetch = ''
tar xf $downloadedFile --strip=1
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/samim-fonts {} \;
'';
sha256 = "0mmhncqg48dp0d7l725dv909zswbkk22dlqzcdfh6k6cgk2gn08q";
meta = with stdenv.lib; {
meta = with lib; {
homepage = https://github.com/rastikerdar/samim-font;
description = "A Persian (Farsi) Font - فونت (قلم) فارسی صمیم";
license = licenses.ofl;