data/fonts: simpler cleanups
This commit is contained in:
@@ -1,22 +1,19 @@
|
||||
{ stdenv, fetchurl, unzip }:
|
||||
{ stdenv, fetchzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "camingo-code-${version}";
|
||||
let
|
||||
version = "1.0";
|
||||
in fetchzip rec {
|
||||
name = "camingo-code-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = https://github.com/chrissimpkins/codeface/releases/download/font-collection/codeface-fonts.zip;
|
||||
sha256 = "1gbpfa5mqyhi5yrb6dl708pggiwp002b532fn3axiagb0cxxf02s";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
installPhase = ''
|
||||
url = https://github.com/chrissimpkins/codeface/releases/download/font-collection/codeface-fonts.zip;
|
||||
postFetch = ''
|
||||
unzip $downloadedFile
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
mkdir -p $out/share/doc/${name}
|
||||
cp -v camingo-code/*.ttf $out/share/fonts/truetype/
|
||||
cp -v camingo-code/*.txt $out/share/doc/${name}/
|
||||
cp -v fonts/camingo-code/*.ttf $out/share/fonts/truetype/
|
||||
cp -v fonts/camingo-code/*.txt $out/share/doc/${name}/
|
||||
'';
|
||||
sha256 = "035z2k6lwwy2bysw27pirn3vjxnj2h23nyx8jr213rb2bl0m21x1";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://www.myfonts.com/fonts/jan-fromm/camingo-code/;
|
||||
|
||||
Reference in New Issue
Block a user