diff options
| author | terramorpha <terramorpha@cock.li> | 2026-01-25 18:12:42 -0500 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-02-10 14:09:52 +0100 |
| commit | 3d364f0e493258cb15f7fbd54cd1827b4c543fea (patch) | |
| tree | 9496fae25aef6f86ac5784a84918a6a29319ca68 /gnu | |
| parent | 09fae4de71c09cdb2a811b08bbdda4425b38af09 (diff) | |
gnu: Add nx-tzdb.
* gnu/packages/emulators.scm (nx-tzdb): New variable.
Change-Id: I2908f71ce7291e91015fe0b7f82a676552eb3a97
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/emulators.scm | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index ab10959dff0..af5797542e4 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | ;;; Copyright © 2025 Anderson Torres <anderson.torres.8519@gmail.com> | 27 | ;;; Copyright © 2025 Anderson Torres <anderson.torres.8519@gmail.com> |
| 28 | ;;; Copyright © 2025 Laura Kirsch <laurakirsch240406@gmail.com> | 28 | ;;; Copyright © 2025 Laura Kirsch <laurakirsch240406@gmail.com> |
| 29 | ;;; Copyright © 2026 Nikita Alkhovik <forgoty13@gmail.com> | 29 | ;;; Copyright © 2026 Nikita Alkhovik <forgoty13@gmail.com> |
| 30 | ;;; Copyright © 2026 Justin Veilleux <terramorpha@cock.li> | ||
| 30 | ;;; | 31 | ;;; |
| 31 | ;;; This file is part of GNU Guix. | 32 | ;;; This file is part of GNU Guix. |
| 32 | ;;; | 33 | ;;; |
| @@ -124,13 +125,14 @@ | |||
| 124 | #:use-module (gnu packages tls) | 125 | #:use-module (gnu packages tls) |
| 125 | #:use-module (gnu packages toolkits) | 126 | #:use-module (gnu packages toolkits) |
| 126 | #:use-module (gnu packages upnp) | 127 | #:use-module (gnu packages upnp) |
| 128 | #:use-module (gnu packages version-control) | ||
| 127 | #:use-module (gnu packages video) | 129 | #:use-module (gnu packages video) |
| 128 | #:use-module (gnu packages vulkan) | 130 | #:use-module (gnu packages vulkan) |
| 131 | #:use-module (gnu packages web) | ||
| 129 | #:use-module (gnu packages xdisorg) | 132 | #:use-module (gnu packages xdisorg) |
| 130 | #:use-module (gnu packages xiph) | 133 | #:use-module (gnu packages xiph) |
| 131 | #:use-module (gnu packages xml) | 134 | #:use-module (gnu packages xml) |
| 132 | #:use-module (gnu packages xorg) | 135 | #:use-module (gnu packages xorg) |
| 133 | #:use-module (gnu packages web) | ||
| 134 | #:use-module (guix build-system cmake) | 136 | #:use-module (guix build-system cmake) |
| 135 | #:use-module (guix build-system copy) | 137 | #:use-module (guix build-system copy) |
| 136 | #:use-module (guix build-system glib-or-gtk) | 138 | #:use-module (guix build-system glib-or-gtk) |
| @@ -1863,6 +1865,50 @@ System (NES/Famicom) emulator Nestopia, with enhancements from members of the | |||
| 1863 | emulation community. It provides highly accurate emulation.") | 1865 | emulation community. It provides highly accurate emulation.") |
| 1864 | (license license:gpl2+))) | 1866 | (license license:gpl2+))) |
| 1865 | 1867 | ||
| 1868 | (define-public nx-tzdb | ||
| 1869 | (package | ||
| 1870 | (name "nx-tzdb") | ||
| 1871 | (version "121125") | ||
| 1872 | (source (origin | ||
| 1873 | (method git-fetch) | ||
| 1874 | (uri (git-reference | ||
| 1875 | (url "https://git.crueter.xyz/misc/tzdb_to_nx") | ||
| 1876 | (commit version))) | ||
| 1877 | (file-name (git-file-name name version)) | ||
| 1878 | (sha256 | ||
| 1879 | (base32 "0fqxvwdlqysgdb0vhb6jvk8mw0f2r6hc6hckw1bsw58z71s5248h")))) | ||
| 1880 | (build-system cmake-build-system) | ||
| 1881 | (arguments | ||
| 1882 | (list | ||
| 1883 | ;; No tests. | ||
| 1884 | #:tests? #f | ||
| 1885 | #:configure-flags | ||
| 1886 | #~(list | ||
| 1887 | ;; Use Guix's tzdata instead of building from the tz submodule. | ||
| 1888 | (string-append "-DTZDB2NX_ZONEINFO_DIR=" | ||
| 1889 | #$(this-package-native-input "tzdata") | ||
| 1890 | "/share/zoneinfo") | ||
| 1891 | (string-append "-DTZDB2NX_VERSION=" #$version)) | ||
| 1892 | #:phases | ||
| 1893 | #~(modify-phases %standard-phases | ||
| 1894 | (add-after 'build 'build-tzdb | ||
| 1895 | (lambda _ | ||
| 1896 | ;; Build the x80e target which converts timezone data. | ||
| 1897 | (invoke "make" "x80e"))) | ||
| 1898 | (replace 'install | ||
| 1899 | (lambda _ | ||
| 1900 | (let ((nx-dir (string-append (getcwd) "/src/tzdb/nx"))) | ||
| 1901 | (copy-recursively nx-dir #$output))))))) | ||
| 1902 | (native-inputs | ||
| 1903 | (list git-minimal tzdata)) | ||
| 1904 | (synopsis "Nintendo Switch timezone database") | ||
| 1905 | (description "This package provides timezone data in the format expected by | ||
| 1906 | Nintendo Switch emulators. It converts standard IANA timezone data to the | ||
| 1907 | Nintendo Switch's proprietary format.") | ||
| 1908 | (home-page "https://git.crueter.xyz/misc/tzdb_to_nx") | ||
| 1909 | ;; The converter is MIT licensed; the generated data is public domain. | ||
| 1910 | (license (list license:expat license:public-domain)))) | ||
| 1911 | |||
| 1866 | (define (make-libretro-beetle-psx name hw) | 1912 | (define (make-libretro-beetle-psx name hw) |
| 1867 | (let ((commit "80d3eba272cf6efab6b76e4dc44ea2834c6f910d") | 1913 | (let ((commit "80d3eba272cf6efab6b76e4dc44ea2834c6f910d") |
| 1868 | (revision "0")) | 1914 | (revision "0")) |
