myrica: fix build on darwin
This commit is contained in:
parent
4c3ccaf418
commit
6cab82d1b4
@ -1,28 +1,20 @@
|
|||||||
{ stdenv, fetchFromGitHub }:
|
{ lib, fetchFromGitHub }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
fetchFromGitHub rec {
|
||||||
name = "myrica-${version}";
|
name = "myrica-2.011.20160403";
|
||||||
version = "2.011.20160403";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
owner = "tomokuni";
|
||||||
owner = "tomokuni";
|
repo = "Myrica";
|
||||||
repo = "Myrica";
|
rev = "b737107723bfddd917210f979ccc32ab3eb6dc20";
|
||||||
rev = "b737107723bfddd917210f979ccc32ab3eb6dc20";
|
sha256 = "187rklcibbkai6m08173ca99qn8v7xpdfdv0izpymmavj85axm12";
|
||||||
sha256 = "0p95kanf1682d9idq4v9agxlvxh08vhvfid2sjyc63knndsrl7wk";
|
|
||||||
};
|
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
postFetch = ''
|
||||||
|
tar --strip-components=1 -xzvf $downloadedFile
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/share/fonts/truetype
|
mkdir -p $out/share/fonts/truetype
|
||||||
cp $src/product/*.TTC $out/share/fonts/truetype
|
cp product/*.TTC $out/share/fonts/truetype
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputHashAlgo = "sha256";
|
meta = with lib; {
|
||||||
outputHashMode = "recursive";
|
|
||||||
outputHash = "187rklcibbkai6m08173ca99qn8v7xpdfdv0izpymmavj85axm12";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
homepage = https://myrica.estable.jp/;
|
homepage = https://myrica.estable.jp/;
|
||||||
license = licenses.ofl;
|
license = licenses.ofl;
|
||||||
maintainers = with maintainers; [ mikoim ];
|
maintainers = with maintainers; [ mikoim ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user