1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00
nixpkgs/pkgs/data/fonts/hasklig/default.nix
David Rusu 1628cee892 hasklig: new font
Closes #4847

Signed-off-by: Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
2014-11-07 01:14:48 +00:00

30 lines
733 B
Nix

{stdenv, fetchurl, unzip}:
stdenv.mkDerivation {
name = "hasklig-0.4";
src = fetchurl {
url = "https://github.com/i-tu/Hasklig/releases/download/0.4/Hasklig-0.4.zip";
sha256 = "14j0zfapw6s6x5psp1rvx2i59rxdwb1jgwfgfhzhypr22qy40xi8";
};
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;
maintainers = with maintainers; [ davidrusu ];
};
}