diff options
author | Alexandre Iooss <erdnaxe@crans.org> | 2022-10-04 13:57:25 +0200 |
---|---|---|
committer | Alexandre Iooss <erdnaxe@crans.org> | 2022-10-12 12:19:09 +0200 |
commit | 6321bdbbab834599d4f0c6b997cc3fd795d6c938 (patch) | |
tree | 09169560a63fb313528eb9bdd6aa7ec6c39c6f48 /pkgs/data | |
parent | 2905d2a32083c1028996b3db9bd8297906b390c2 (diff) |
envypn-font: add pre and post hooks
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/envypn-font/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/data/fonts/envypn-font/default.nix b/pkgs/data/fonts/envypn-font/default.nix index 4cc001f2e70a7..f64c56f11e80f 100644 --- a/pkgs/data/fonts/envypn-font/default.nix +++ b/pkgs/data/fonts/envypn-font/default.nix @@ -18,16 +18,24 @@ stdenv.mkDerivation rec { ''; buildPhase = '' + runHook preBuild + # convert pcf fonts to otb for i in *e.pcf.gz; do faketime -f "1970-01-01 00:00:01" \ fonttosfnt -v -o "$(basename "$i" .pcf.gz)".otb "$i" done + + runHook postBuild ''; installPhase = '' + runHook preInstall + install -D -m 644 -t "$out/share/fonts/misc" *.otb *.pcf.gz mkfontdir "$out/share/fonts/misc" + + runHook postInstall ''; meta = with lib; { |