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:
@@ -1,24 +1,21 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ lib, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
pname = "agave";
|
||||
version = "009";
|
||||
in fetchurl {
|
||||
name = "${pname}-${version}";
|
||||
url = "https://github.com/agarick/agave/releases/download/v${version}/agave-r.ttf";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/agarick/agave/releases/download/v${version}/agave-r.ttf";
|
||||
sha256 = "05766gp2glm1p2vknk1nncxigq28hg8s58kjwsbn8zpwy8ivywpk";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
unpackPhase = ":";
|
||||
dontBuild = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp $src $out/share/fonts/truetype/
|
||||
downloadToTemp = true;
|
||||
recursiveHash = true;
|
||||
postFetch = ''
|
||||
install -D $downloadedFile $out/share/fonts/truetype/agave-r.ttf
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
sha256 = "16qvz3zpwiq2nw0gxygva5pssswcia5xp0q6ir5jfkackvqf3fql";
|
||||
|
||||
meta = with lib; {
|
||||
description = "truetype monospaced typeface designed for X environments";
|
||||
homepage = https://b.agaric.net/page/agave;
|
||||
license = licenses.mit;
|
||||
|
||||
Reference in New Issue
Block a user