Merge pull request #115345 from fortuneteller2k/update-scientifica

scientifica: 2.1 -> 2.2
This commit is contained in:
Sandro 2021-03-07 20:06:00 +01:00 committed by GitHub
commit 854859ab3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,25 +1,25 @@
{ lib, fetchurl }:
let
version = "2.1";
version = "2.2";
in fetchurl rec {
name = "scientifica-${version}";
url = "https://github.com/NerdyPepper/scientifica/releases/download/v${version}/scientifica-v${version}.tar";
url = "https://github.com/NerdyPepper/scientifica/releases/download/v${version}/scientifica.tar";
downloadToTemp = true;
recursiveHash = true;
sha256 = "081faa48d6g86pacmgjqa96in72rjldavnwxq6bdq2br33h3qwrz";
sha256 = "sha256-mkZnuW+CB20t6MEpEeQR1CWkIUtqgVwrKN4sezQRaB4=";
postFetch = ''
tar xvf $downloadedFile
tar xf $downloadedFile
mkdir -p $out/share/fonts/truetype
mkdir -p $out/share/fonts/misc
cp scientifica/ttf/*.ttf $out/share/fonts/truetype
cp scientifica/otb/*.otb $out/share/fonts/misc
cp scientifica/bdf/*.bdf $out/share/fonts/misc
install scientifica/ttf/*.ttf $out/share/fonts/truetype
install scientifica/otb/*.otb $out/share/fonts/misc
install scientifica/bdf/*.bdf $out/share/fonts/misc
'';
meta = with lib; {