Add font-opengost
modules/cogd/packages/fonts.scm unknown status 1
| 1 | + | ;;; SPDX-FileCopyrightText: 2025 Evgeny Pisemsky <mail@pisemsky.site> | |
| 2 | + | ;;; | |
| 3 | + | ;;; SPDX-License-Identifier: GPL-3.0-or-later | |
| 4 | + | ||
| 5 | + | (define-module (cogd packages fonts)) | |
| 6 | + | ||
| 7 | + | (use-modules (guix packages) | |
| 8 | + | (guix hg-download) | |
| 9 | + | (guix build-system font) | |
| 10 | + | (guix build utils) | |
| 11 | + | ((guix licenses) #:prefix license:) | |
| 12 | + | (guix gexp) | |
| 13 | + | (gnu packages base) | |
| 14 | + | (gnu packages fontutils) | |
| 15 | + | (gnu packages python)) | |
| 16 | + | ||
| 17 | + | (define-public font-opengost | |
| 18 | + | (package | |
| 19 | + | (name "font-opengost") | |
| 20 | + | (version "0.3") | |
| 21 | + | ;; The repository is not available since 2020, but archived on | |
| 22 | + | ;; SWH, which allows guix to perform the resurrection ritual. | |
| 23 | + | (source | |
| 24 | + | (origin | |
| 25 | + | (method hg-fetch) | |
| 26 | + | (uri (hg-reference (url "https://bitbucket.org/fat_angel/opengostfont") | |
| 27 | + | (changeset version))) | |
| 28 | + | (file-name (hg-file-name name version)) | |
| 29 | + | (sha256 | |
| 30 | + | (base32 "03sqpjdc78mxlcx9lngrwjxqlqblnk0mjc6yi2y4xwzml0s8habi")))) | |
| 31 | + | (build-system font-build-system) | |
| 32 | + | (arguments | |
| 33 | + | (list | |
| 34 | + | #:phases #~(modify-phases %standard-phases | |
| 35 | + | (add-before 'install 'build | |
| 36 | + | (lambda _ | |
| 37 | + | (invoke "2to3" "-w" "genfonts.py") | |
| 38 | + | (invoke "make")))))) | |
| 39 | + | (native-inputs (list coreutils fontforge gnu-make python-wrapper)) | |
| 40 | + | (home-page (string-append | |
| 41 | + | "https://archive.softwareheritage.org/browse/origin/directory/" | |
| 42 | + | "?origin_url=https://bitbucket.org/fat_angel/opengostfont")) | |
| 43 | + | (synopsis "Open-source Russian GOST fonts") | |
| 44 | + | (description | |
| 45 | + | "Open-source version of the fonts by Russian standard GOST 2.304-81 | |
| 46 | + | \"Letters for drawings\".") | |
| 47 | + | (license license:silofl1.1))) |