2023-01-28 08:13:31 +03:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2014-11-05 22:10:15 +03:00
|
|
|
|
2023-01-28 08:13:31 +03:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "hasklig";
|
2017-03-03 21:21:19 +03:00
|
|
|
version = "1.1";
|
2014-11-05 22:10:15 +03:00
|
|
|
|
2023-01-28 08:13:31 +03:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/i-tu/Hasklig/releases/download/${version}/Hasklig-${version}.zip";
|
|
|
|
stripRoot = false;
|
|
|
|
hash = "sha256-jsPQtjuegMePt4tB1dZ9mq15LSxXBYwtakbq4od/sko=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2014-11-05 22:10:15 +03:00
|
|
|
|
2023-01-28 08:13:31 +03:00
|
|
|
install -m444 -Dt $out/share/fonts/opentype *.otf
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2017-08-10 22:43:49 +03:00
|
|
|
|
2019-05-13 04:55:32 +03:00
|
|
|
meta = with lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/i-tu/Hasklig";
|
2014-11-05 22:10:15 +03:00
|
|
|
description = "A font with ligatures for Haskell code based off Source Code Pro";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
2023-07-07 13:52:12 +03:00
|
|
|
maintainers = with maintainers; [ davidrusu ];
|
2014-11-05 22:10:15 +03:00
|
|
|
};
|
2023-01-28 08:13:31 +03:00
|
|
|
}
|