2023-01-25 11:34:24 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2019-07-13 08:00:39 +00:00
|
|
|
|
2023-01-25 11:34:24 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "victor-mono";
|
2023-05-21 04:39:53 +00:00
|
|
|
version = "1.5.5";
|
2019-07-13 08:00:39 +00:00
|
|
|
|
2019-07-17 23:27:26 +00: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 11:34:24 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip";
|
|
|
|
stripRoot = false;
|
2023-05-21 04:39:53 +00:00
|
|
|
hash = "sha256-l8XeKE9PtluiazZO0PXfkGCcnm5o+VZdL7NZ6w0tp80=";
|
2023-01-25 11:34:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2019-07-17 23:27:26 +00:00
|
|
|
|
2022-06-02 21:04:32 +00:00
|
|
|
mkdir -p "$out/share/fonts/"
|
|
|
|
|
2023-01-25 11:34:24 +00:00
|
|
|
mv OTF $out/share/fonts/opentype
|
|
|
|
mv TTF $out/share/fonts/truetype
|
2022-06-02 21:04:32 +00:00
|
|
|
|
2023-01-25 11:34:24 +00:00
|
|
|
runHook postInstall
|
2019-07-13 08:00:39 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2019-07-17 23:27:26 +00:00
|
|
|
description = "Free programming font with cursive italics and ligatures";
|
|
|
|
homepage = "https://rubjo.github.io/victor-mono";
|
2021-10-30 04:20:00 +00:00
|
|
|
license = licenses.ofl;
|
2019-07-17 23:27:26 +00:00
|
|
|
maintainers = with maintainers; [ jpotier dtzWill ];
|
2019-07-13 08:00:39 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|