forked from mirrors/nixpkgs
c9eb44eab3
* make font derivations fixed-output where applicable * fix dead links * `stdenv.lib` -> `lib` where `stdenv` is not involved * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
25 lines
640 B
Nix
25 lines
640 B
Nix
{ lib, fetchzip }:
|
|
|
|
let
|
|
version = "1.1";
|
|
in fetchzip {
|
|
name = "hasklig-${version}";
|
|
|
|
url = "https://github.com/i-tu/Hasklig/releases/download/${version}/Hasklig-${version}.zip";
|
|
|
|
postFetch = ''
|
|
unzip $downloadedFile
|
|
install -m444 -Dt $out/share/fonts/opentype *.otf
|
|
'';
|
|
|
|
sha256 = "0xxyx0nkapviqaqmf3b610nq17k20afirvc72l32pfspsbxz8ybq";
|
|
|
|
meta = with 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 Profpatsch ];
|
|
};
|
|
}
|