forked from mirrors/nixpkgs
iosevka: make the font derivation fixed-output
- [x] make the font derivation fixed-output (https://github.com/NixOS/nixpkgs/issues/27754)
This commit is contained in:
parent
dfb345898b
commit
44b3f9151a
|
@ -1,25 +1,19 @@
|
|||
{ stdenv, fetchurl, unzip }:
|
||||
{ stdenv, fetchzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "iosevka-${version}";
|
||||
let
|
||||
version = "1.13.1";
|
||||
in fetchzip rec {
|
||||
name = "iosevka-${version}";
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
url = "https://github.com/be5invis/Iosevka/releases/download/v${version}/iosevka-pack-${version}.zip";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/be5invis/Iosevka/releases/download/v${version}/iosevka-pack-${version}.zip";
|
||||
sha256 = "05nnzbhv0sidbzzamz10nlh3j974m95p3dmd66165y4wxyhs989i";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
installPhase = ''
|
||||
fontdir=$out/share/fonts/iosevka
|
||||
|
||||
mkdir -p $fontdir
|
||||
cp -v iosevka-* $fontdir
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts
|
||||
unzip -j $downloadedFile \*.ttc -d $out/share/fonts/iosevka
|
||||
'';
|
||||
|
||||
sha256 = "0w35jkvfnzn4clm3010wv13sil2yj6pxffx40apjp7yhh19c4sw7";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://be5invis.github.io/Iosevka/;
|
||||
downloadPage = "https://github.com/be5invis/Iosevka/releases";
|
||||
|
|
Loading…
Reference in a new issue