2014-11-05 19:10:15 +00:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
2016-07-25 20:18:09 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hasklig-${version}";
|
2017-03-03 18:21:19 +00:00
|
|
|
version = "1.1";
|
2014-11-05 19:10:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-07-25 20:18:09 +01:00
|
|
|
url = "https://github.com/i-tu/Hasklig/releases/download/${version}/Hasklig-${version}.zip";
|
2017-03-03 18:21:19 +00:00
|
|
|
sha256 = "1hwmdbygallw2kjk0v3a3dl7w6b21wii3acrl0w3ibn05g1cxv4q";
|
2014-11-05 19:10:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
cp *.otf $out/share/fonts/opentype
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/i-tu/Hasklig";
|
|
|
|
description = "A font with ligatures for Haskell code based off Source Code Pro";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
2016-07-25 20:18:09 +01:00
|
|
|
maintainers = with maintainers; [ davidrusu profpatsch ];
|
2014-11-05 19:10:15 +00:00
|
|
|
};
|
|
|
|
}
|