ultimate-oldschool-pc-font-pack: simplify using fetchzip (#47313)
This commit is contained in:
parent
8ef0f71494
commit
a3ba62db23
@ -1,24 +1,16 @@
|
|||||||
{ stdenv, fetchurl, unzip }:
|
{ stdenv, fetchzip }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "ultimate-oldschool-pc-font-pack-${version}";
|
|
||||||
version = "1.0";
|
version = "1.0";
|
||||||
|
in
|
||||||
src = fetchurl {
|
fetchzip rec {
|
||||||
|
name = "ultimate-oldschool-pc-font-pack-${version}";
|
||||||
url = "http://int10h.org/oldschool-pc-fonts/download/ultimate_oldschool_pc_font_pack_v${version}.zip";
|
url = "http://int10h.org/oldschool-pc-fonts/download/ultimate_oldschool_pc_font_pack_v${version}.zip";
|
||||||
sha256 = "7666cf23176e34ea03a218b5c1500f4ad729d97150ab7bdb7cf2adf4c99a9a7a";
|
sha256 = "0hid4dgqfy2w26734vcw2rxmpacd9vd1r2qpdr9ww1n3kgc92k9y";
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ unzip ];
|
postFetch= ''
|
||||||
|
|
||||||
dontBuild = true;
|
|
||||||
|
|
||||||
sourceRoot = ".";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/share/fonts/truetype
|
mkdir -p $out/share/fonts/truetype
|
||||||
cp 'Px437 (TrueType - DOS charset)'/*.ttf $out/share/fonts/truetype
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
||||||
cp 'PxPlus (TrueType - extended charset)'/*.ttf $out/share/fonts/truetype
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user