Compare commits

...

5 commits

Author SHA1 Message Date
admmq
d135b4a2c6 Merge branch 'add-hyper-v-instructions' into 'master'
add hyper-v instructions

See merge request nonguix/nonguix!674
2026-01-22 12:18:37 +00:00
Tomas Volf
f5338f63fc
nongnu: firefox: Update to 147.0 [security fixes].
Fixes CVE-2026-0877, CVE-2026-0878, CVE-2026-0879, CVE-2026-0880,
CVE-2026-0881, CVE-2026-0882, CVE-2026-0883, CVE-2026-0884,
CVE-2026-0885, CVE-2026-0886, CVE-2026-0887, CVE-2026-0888,
CVE-2026-0889, CVE-2026-0890, CVE-2026-0891, CVE-2026-0892.

* nongnu/packages/mozilla.scm (firefox): Update to 147.0.
[inputs]: Use icu4c-78.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
Modified-by: John Kehayias <john.kehayias@protonmail.com>
2026-01-20 23:41:28 -05:00
Maxim Cournoyer
60d1e7b0f6
nongnu: gradle: Wrap PATH.
* nongnu/packages/gradle.scm (gradle)[#:phases]{wrap}: Add PATH wrapping.
[inputs]: Add coreutils, findutils and sed.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2026-01-20 23:38:14 -05:00
John Kehayias
260dc0fdb7
nongnu: Remove icu4c-71 references.
Fixes #434.

Upstream guix removed icu4c-71 in commit
<c65c25e82b>.
While dotnet builds and at least basic running works, it may require an
update (or restoring an older icu4c version).

* nongnu/packages/dotnet.scm (dotnet, dotnet-core-3.1)[inputs]: Change
icu4c-71 to icu4c.
2026-01-20 23:26:16 -05:00
Adam Quandour
cea804758d add hyper-v instructions 2025-05-15 03:50:45 -07:00
4 changed files with 71 additions and 7 deletions

View file

@ -415,6 +415,59 @@ use as your kernel.
...)
#+END_SRC
* Running Guix on proprietary hypervisors
** Hyper-V
HyperV is relatively popular solution for deploying a hypervisor. Especially in small companies.
*** Creating a bootable image
Creating an iso of Guix is trivial and described here in [[https://guix.gnu.org/manual/devel/en/html_node/Building-the-Installation-Image.html][Guix manual]]. Unfortunately, such image
will not boot on gen 2 hyper-v vm. It will not mount the virtual disk. This can be resolved by
adding initrd modules hv_storvsc, hv_vmbus and hv_utils to installation-os definition in
gnu/system/install.scm.
#+BEGIN_SRC scheme
...
(define installation-os
;; The operating system used on installation images for USB sticks etc.
(operating-system
(initrd-modules (append (list "hv_storvsc" "hv_vmbus" "hv_utils")
%base-initrd-modules))
(host-name "gnu")
...
#+END_SRC
After that run
#+BEGIN_SRC shell
guix system image --image-type=iso9660 gnu/system/install.scm
#+END_SRC
This will generate an installation image which will successfully run on gen 2 hyper-v vm.
*** Installing Guix
Create configuration file (using manual installation option) and add initrd modules mentioned
above.
*** Fixing screen resolution
In case you would want to deploy a Guix server with graphics, to increase vm screen size use
hyperv_fb. Add it as a kernel argument in your system config.
#+BEGIN_SRC scheme
...
(operating-system
(initrd-modules (append (list "hv_storvsc" "hv_vmbus" "hv_utils")
%base-initrd-modules))
(kernel-arguments
(append
'("video=hyperv_fb:1920x1080")
%default-kernel-arguments))
...
#+END_SRC
* Contributing
Contributions are welcome! If there's a package you would like to add, just

View file

@ -177,7 +177,7 @@ various IDEs and plugins.")
(files '("share/dotnet")))))
(inputs
`(("gcc:lib" ,gcc "lib")
("icu4c" ,icu4c-71)
("icu4c" ,icu4c)
("lttng-ust" ,lttng-ust)
("mit-krb5" ,mit-krb5)
("openssl" ,openssl)
@ -287,7 +287,7 @@ building different types of applications.")
(inputs
`(("gcc:lib" ,gcc "lib")
("glibc", glibc)
("icu4c" ,icu4c-71)
("icu4c" ,icu4c)
("lttng-ust" ,lttng-ust)
("mit-krb5" ,mit-krb5)
("openssl" ,openssl)

View file

@ -3,6 +3,7 @@
;;; Copyright © 2025 Maxim Cournoyer <maxim@guixotic.coop>
(define-module (nongnu packages gradle)
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
#:use-module (gnu packages java)
#:use-module (guix build-system copy)
@ -35,9 +36,16 @@
`("JAVA_HOME" =
(,(dirname
(dirname
(search-input-file inputs "bin/javac")))))))))))
(search-input-file inputs "bin/javac")))))
`("PATH" prefix
(,(dirname
(search-input-file inputs "bin/sed"))
,(dirname
(search-input-file inputs "bin/uname"))
,(dirname
(search-input-file inputs "/bin/xargs"))))))))))
(native-inputs (list unzip))
(inputs (list `(,openjdk "jdk")))
(inputs (list coreutils findutils `(,openjdk "jdk") sed))
(home-page "https://gradle.org/")
(synopsis "Flexible build automation tool for JVM")
(description "Gradle is a build tool with a focus on build automation and

View file

@ -529,20 +529,20 @@ Release (ESR) version.")
;; Update this id with every firefox update to its release date.
;; It's used for cache validation and therefore can lead to strange bugs.
(define %firefox-build-id "20251217214444")
(define %firefox-build-id "20260112140453")
(define-public firefox
(package
(inherit firefox-esr)
(name "firefox")
(version "146.0.1")
(version "147.0")
(source
(origin
(method url-fetch)
(uri (string-append "https://archive.mozilla.org/pub/firefox/releases/"
version "/source/firefox-" version ".source.tar.xz"))
(sha256
(base32 "1swih4jljq162vgdl2m2d8xn4s4hj4vjqcfww59kk4kkhh78lrz9"))
(base32 "1znr9wp4f79b83mv0as9kj0nh09yjxzqv4nbi4bmn7jgfmiqwb92"))
(patches
(map (lambda (patch)
(search-path
@ -564,6 +564,9 @@ Release (ESR) version.")
(replace 'set-build-id
(lambda _
(setenv "MOZ_BUILD_DATE" #$%firefox-build-id)))))))
(inputs
(modify-inputs (package-inputs firefox-esr)
(replace "icu4c" icu4c-78)))
(native-inputs
(modify-inputs (package-native-inputs firefox-esr)
(replace "rust" rust-firefox)