mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
pecita: download from official source
The file upstream has not been changed for a long time so should be safe to avoid the archive URL.
This commit is contained in:
parent
199b899846
commit
58213481f6
@ -1,18 +1,24 @@
|
||||
{stdenv, fetchzip}:
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
let
|
||||
|
||||
version = "5.4";
|
||||
in fetchzip rec {
|
||||
|
||||
in
|
||||
|
||||
fetchurl rec {
|
||||
name = "pecita-${version}";
|
||||
|
||||
url = "http://archive.rycee.net/pecita/${name}.tar.xz";
|
||||
url = "http://pecita.eu/b/Pecita.otf";
|
||||
|
||||
downloadToTemp = true;
|
||||
|
||||
postFetch = ''
|
||||
tar xJvf $downloadedFile --strip-components=1
|
||||
mkdir -p $out/share/fonts/opentype
|
||||
cp -v Pecita.otf $out/share/fonts/opentype/Pecita.otf
|
||||
cp -v $downloadedFile $out/share/fonts/opentype/Pecita.otf
|
||||
'';
|
||||
|
||||
recursiveHash = true;
|
||||
sha256 = "0pwm20f38lcbfkdqkpa2ydpc9kvmdg0ifc4h2dmipsnwbcb5rfwm";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user