data/fonts: simpler cleanups

This commit is contained in:
Volth
2017-08-11 14:26:03 +00:00
parent 691da0cbb9
commit 31c344982f
95 changed files with 865 additions and 1088 deletions
+9 -12
View File
@@ -1,22 +1,19 @@
{ stdenv, fetchurl, unzip }:
{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
name = "mononoki-${version}";
let
version = "1.2";
in fetchzip {
name = "mononoki-${version}";
src = fetchurl {
url = "https://github.com/madmalik/mononoki/releases/download/${version}/mononoki.zip";
sha256 = "0n66bnn2i776fbky14qjijwsbrja9yzc1xfsmvz99znvcdvflafg";
};
url = "https://github.com/madmalik/mononoki/releases/download/${version}/mononoki.zip";
buildInputs = [ unzip ];
phases = [ "unpackPhase" ];
unpackPhase = ''
postFetch = ''
mkdir -p $out/share/fonts/mononoki
unzip $src -d $out/share/fonts/mononoki
unzip -j $downloadedFile -d $out/share/fonts/mononoki
'';
sha256 = "19y4xg7ilm21h9yynyrwcafdqn05zknpmmjrb37qim6p0cy2glff";
meta = with stdenv.lib; {
homepage = https://github.com/madmalik/mononoki;
description = "A font for programming and code review";