2014-11-05 20:10:15 +01:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
2016-07-25 21:18:09 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hasklig-${version}";
|
|
|
|
version = "0.9";
|
2014-11-05 20:10:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-07-25 21:18:09 +02:00
|
|
|
url = "https://github.com/i-tu/Hasklig/releases/download/${version}/Hasklig-${version}.zip";
|
|
|
|
sha256 = "0rav55f6j1b8pqjgwvw52b92j2m630ampamlsiiym2xf684wnw2d";
|
2014-11-05 20:10:15 +01: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 21:18:09 +02:00
|
|
|
maintainers = with maintainers; [ davidrusu profpatsch ];
|
2014-11-05 20:10:15 +01:00
|
|
|
};
|
|
|
|
}
|