2017-08-10 21:43:49 +02:00
|
|
|
{stdenv, fetchzip}:
|
2014-11-05 20:10:15 +01:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
let
|
2017-03-03 19:21:19 +01:00
|
|
|
version = "1.1";
|
2017-08-10 21:43:49 +02:00
|
|
|
in fetchzip {
|
|
|
|
name = "hasklig-${version}";
|
2014-11-05 20:10:15 +01:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
url = "https://github.com/i-tu/Hasklig/releases/download/${version}/Hasklig-${version}.zip";
|
2014-11-05 20:10:15 +01:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
postFetch = ''
|
|
|
|
unzip $downloadedFile
|
2014-11-05 20:10:15 +01:00
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
cp *.otf $out/share/fonts/opentype
|
|
|
|
'';
|
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
sha256 = "0xxyx0nkapviqaqmf3b610nq17k20afirvc72l32pfspsbxz8ybq";
|
|
|
|
|
2014-11-05 20:10:15 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/i-tu/Hasklig;
|
2014-11-05 20:10:15 +01:00
|
|
|
description = "A font with ligatures for Haskell code based off Source Code Pro";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
2016-07-25 21:18:09 +02:00
|
|
|
maintainers = with maintainers; [ davidrusu profpatsch ];
|
2014-11-05 20:10:15 +01:00
|
|
|
};
|
|
|
|
}
|