summaryrefslogtreecommitdiffstats
path: root/pkgs/data/fonts/b612
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-30 10:25:57 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-30 10:25:57 +0100
commit7f42f2852980166a4488c82e666253b0d30c01e5 (patch)
treee0889d396f126569b7e46410e3c6cef8ae3c7758 /pkgs/data/fonts/b612
parent99f5676ba0a0c2d7605b63b2dd1b146c384f42dd (diff)
treewide: convert 43 fonts to stdenvNoCC.mkDerivation
Diffstat (limited to 'pkgs/data/fonts/b612')
-rw-r--r--pkgs/data/fonts/b612/default.nix30
1 files changed, 15 insertions, 15 deletions
diff --git a/pkgs/data/fonts/b612/default.nix b/pkgs/data/fonts/b612/default.nix
index c38329227f02..b78f3a9e85bf 100644
--- a/pkgs/data/fonts/b612/default.nix
+++ b/pkgs/data/fonts/b612/default.nix
@@ -1,25 +1,25 @@
-{ lib, fetchFromGitHub }:
+{ lib, stdenvNoCC, fetchFromGitHub }:
-fetchFromGitHub rec {
+stdenvNoCC.mkDerivation rec {
pname = "b612";
version = "1.008";
- owner = "polarsys";
- repo = "b612";
- rev = version;
+ src = fetchFromGitHub {
+ owner = "polarsys";
+ repo = "b612";
+ rev = version;
+ hash = "sha256-uyBC8UNOwztCHXhR9XZuWDwrty0eClbo0E+gI1PmjEg=";
+ };
- postFetch = ''
- mkdir -p $out/share/fonts/truetype
+ installPhase = ''
+ runHook preInstall
- mv $out/fonts/ttf/*.ttf $out/share/fonts/truetype
+ mkdir -p $out/share/fonts/truetype
+ mv fonts/ttf/*.ttf $out/share/fonts/truetype
- shopt -s extglob dotglob
- rm -rf $out/!(share)
- shopt -u extglob dotglob
+ runHook postInstall
'';
- hash = "sha256-aJ3XzWQauPsWwEDAHT2rD9a8RvLv1kqU3krFXprmypk=";
-
meta = with lib; {
homepage = "https://b612-font.com/";
description = "Highly legible font family for use on aircraft cockpit screens";
@@ -36,8 +36,8 @@ fetchFromGitHub rec {
variants of the font. This one, baptized B612 in reference to the
imaginary asteroid of the aviator Saint‑Exupéry, benefited from a complete
hinting on all the characters.
- '';
- license = with licenses; [ ofl epl10 bsd3 ] ;
+ '';
+ license = with licenses; [ ofl epl10 bsd3 ];
maintainers = with maintainers; [ leenaars ];
platforms = platforms.all;
};