diff options
author | Bobby Rong <rjl931189261@126.com> | 2022-10-18 07:40:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 07:40:14 +0800 |
commit | 5608cfb9b4b05687ba639e7c6ea423ee990928f8 (patch) | |
tree | f5fbb81b2efd26960215370745b63550250c548c /pkgs/data | |
parent | ea762acac26c0c61ae50801210326c17ead94fac (diff) | |
parent | fda0af137c285ea36df7264911e9bc11fba492d1 (diff) |
Merge pull request #192723 from erdnaxe/envypn-font-pname-version
envypn-font: rename name to pname&version
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/envypn-font/default.nix | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/data/fonts/envypn-font/default.nix b/pkgs/data/fonts/envypn-font/default.nix index b80067baff058..fc69e398e44d5 100644 --- a/pkgs/data/fonts/envypn-font/default.nix +++ b/pkgs/data/fonts/envypn-font/default.nix @@ -2,11 +2,12 @@ , xorg }: -stdenv.mkDerivation { - name = "envypn-font-1.7.1"; +stdenv.mkDerivation rec { + pname = "envypn-font"; + version = "1.7.1"; src = fetchurl { - url = "https://ywstd.fr/files/p/envypn-font/envypn-font-1.7.1.tar.gz"; + url = "https://ywstd.fr/files/p/envypn-font/envypn-font-${version}.tar.gz"; sha256 = "bda67b6bc6d5d871a4d46565d4126729dfb8a0de9611dae6c68132a7b7db1270"; }; @@ -17,16 +18,24 @@ stdenv.mkDerivation { ''; 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; { @@ -36,5 +45,6 @@ stdenv.mkDerivation { homepage = "http://ywstd.fr/p/pj/#envypn"; license = licenses.miros; platforms = platforms.all; + maintainers = with maintainers; [ erdnaxe ]; }; } |