nixpkgs-suyu/pkgs/data/fonts/victor-mono/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.1 KiB
Nix
Raw Normal View History

2023-01-25 12:34:24 +01:00
{ lib, stdenvNoCC, fetchzip }:
2019-07-13 10:00:39 +02:00
2023-01-25 12:34:24 +01:00
stdenvNoCC.mkDerivation rec {
pname = "victor-mono";
2022-08-02 08:43:06 +02:00
version = "1.5.4";
2019-07-13 10:00:39 +02:00
# Upstream prefers we download from the website,
# but we really insist on a more versioned resource.
# Happily, tagged releases on github contain the same
# file `VictorMonoAll.zip` as from the website,
# so we extract it from the tagged release.
# Both methods produce the same file, but this way
# we can safely reason about what version it is.
2023-01-25 12:34:24 +01:00
src = fetchzip {
url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip";
stripRoot = false;
hash = "sha256-E8j1bfYrM8yRtasiwgTvyE4EYx2LyAbmw3MXH1l+owk=";
};
installPhase = ''
runHook preInstall
2022-06-02 23:04:32 +02:00
mkdir -p "$out/share/fonts/"
2023-01-25 12:34:24 +01:00
mv OTF $out/share/fonts/opentype
mv TTF $out/share/fonts/truetype
2022-06-02 23:04:32 +02:00
2023-01-25 12:34:24 +01:00
runHook postInstall
2019-07-13 10:00:39 +02:00
'';
meta = with lib; {
description = "Free programming font with cursive italics and ligatures";
homepage = "https://rubjo.github.io/victor-mono";
license = licenses.ofl;
maintainers = with maintainers; [ jpotier dtzWill ];
2019-07-13 10:00:39 +02:00
platforms = platforms.all;
};
}