aboutsummaryrefslogtreecommitdiff
-*- mode: org -*-

This is [[https://koszko.org/koszko.html][Wojtek]]'s Guix fork.  It serves as a home for personal modifications
and additions that for some reason aren't in upstream Guix.  These may include
package and service definitions, as well as changes to Guix itself.  You're
free to clone this repository and use it for your own needs.  But if you
choose to do so, please be ready to deal with some peculiarities.

- The tip this repository is intended to be frequently rebased on top of
  upstream Guix so expect ~git pull~ to complain.
- As a result of the rebasing approach, the ~--allow-downgrades~ flag has to
  be used when running ~guix pull~ or ~guix (system|home) reconfigure~.
- As another result of the rebasing approach, there's no PGP authorization (it
  would not be possible to provide it reliably).  The =.guix-authorizations=
  file is removed by one of the tip commits to remove the warning from ~guix
  pull~.
- If you don't know what all this means, this is probably not for you.  Try
  [[https://guix.gnu.org/][upstream Guix]] instead :)

Feel free to look into the ~koszko-scripts~ branch to see the scripts I am
using to maintain this thing.  Note they might prove pretty useless to you.

Wojtek's copyright to his changes to Guix is waived using [[https://creativecommons.org/publicdomain/zero/1.0/legalcode.en][CC0-1.0]].


* The original README introduction

[[https://www.gnu.org/software/guix/][GNU Guix]] (IPA: /ɡiːks/) is a purely functional package manager, and
associated free software distribution, for the [[https://www.gnu.org/gnu/gnu.html][GNU system]].  In addition
to standard package management features, Guix supports transactional
upgrades and roll-backs, unprivileged package management, per-user
profiles, and garbage collection.

It provides [[https://www.gnu.org/software/guile/][Guile]] Scheme APIs, including a high-level embedded
domain-specific languages (EDSLs) to describe how packages are to be
built and composed.

GNU Guix can be used on top of an already-installed GNU/Linux distribution, or
it can be used standalone (we call that “Guix System”).

Guix is based on the [[https://nixos.org/nix/][Nix]] package manager.


* Requirements

If you are building Guix from source, please see the manual for build
instructions and requirements, either by running:

  info -f doc/guix.info "Requirements"

or by checking the [[https://guix.gnu.org/manual/en/html_node/Requirements.html][web copy of the manual]].

* Installation

See the manual for the installation instructions, either by running

  info -f doc/guix.info "Installation"

or by checking the [[https://guix.gnu.org/manual/en/html_node/Installation.html][web copy of the manual]].

* Building from Git

For information on building Guix from a Git checkout, please see the relevant
section in the manual, either by running

  info -f doc/guix.info "Building from Git"

or by checking the [[https://guix.gnu.org/manual/en/html_node/Building-from-Git.html][web_copy of the manual]].

* How It Works

Guix does the high-level preparation of a /derivation/.  A derivation is
the promise of a build; it is stored as a text file under
=/gnu/store/xxx.drv=.  The (guix derivations) module provides the
`derivation' primitive, as well as higher-level wrappers such as
`build-expression->derivation'.

Guix does remote procedure calls (RPCs) to the build daemon (the =guix-daemon=
command), which in turn performs builds and accesses to the store on its
behalf.  The RPCs are implemented in the (guix store) module.

* Contact

GNU Guix is hosted at https://savannah.gnu.org/projects/guix/.

Please email <help-guix@gnu.org> for questions and <bug-guix@gnu.org> for bug
reports; email <gnu-system-discuss@gnu.org> for general issues regarding the
GNU system.

Join #guix on irc.libera.chat.

* Guix & Nix

GNU Guix is based on [[https://nixos.org/nix/][the Nix package manager]].  It implements the same
package deployment paradigm, and in fact it reuses some of its code.
Yet, different engineering decisions were made for Guix, as described
below.

Nix is really two things: a package build tool, implemented by a library
and daemon, and a special-purpose programming language.  GNU Guix relies
on the former, but uses Scheme as a replacement for the latter.

Using Scheme instead of a specific language allows us to get all the
features and tooling that come with Guile (compiler, debugger, REPL,
Unicode, libraries, etc.)  And it means that we have a general-purpose
language, on top of which we can have embedded domain-specific languages
(EDSLs), such as the one used to define packages.  This broadens what
can be done in package recipes themselves, and what can be done around them.

Technically, Guix makes remote procedure calls to the ‘nix-worker’
daemon to perform operations on the store.  At the lowest level, Nix
“derivations” represent promises of a build, stored in ‘.drv’ files in
the store.  Guix produces such derivations, which are then interpreted
by the daemon to perform the build.  Thus, Guix derivations can use
derivations produced by Nix (and vice versa).

With Nix and the [[https://nixos.org/nixpkgs][Nixpkgs]] distribution, package composition happens at
the Nix language level, but builders are usually written in Bash.
Conversely, Guix encourages the use of Scheme for both package
composition and builders.  Likewise, the core functionality of Nix is
written in C++ and Perl; Guix relies on some of the original C++ code,
but exposes all the API as Scheme.

* Related software

  - [[https://nixos.org][Nix, Nixpkgs, and NixOS]], functional package manager and associated
    software distribution, are the inspiration of Guix
  - [[https://www.gnu.org/software/stow/][GNU Stow]] builds around the idea of one directory per prefix, and a
    symlink tree to create user environments
  - [[https://www.pvv.ntnu.no/~arnej/store/storedoc_6.html][STORE]] shares the same idea
  - [[https://live.gnome.org/OSTree/][GNOME's OSTree]] allows bootable system images to be built from a
    specified set of packages
  - The [[https://www.gnu.org/s/gsrc/][GNU Source Release Collection]] (GSRC) is a user-land software
    distribution; unlike Guix, it relies on core tools available on the
    host system
'>2016-05-29gnu: graphicsmagick: Fix CVE-2016-5118....* gnu/packages/patches/graphicsmagick-CVE-2016-5118.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/imagemagick.scm (graphicsmagick): Use it. Leo Famulari 2016-05-30gnu: vorbis-tools: Fix CVE-2014-9638, CVE-2014-9639, CVE-2014-9640....* gnu/packages/xiph.scm (vorbis-tools)[source]: Add patches. * gnu/packages/patches/vorbis-tools-CVE-2014-9638+CVE-2014-9639.patch, gnu/packages/patches/vorbis-tools-CVE-2014-9640.patch: New variables. * gnu/local.mk (dist_patch_DATA): Add them. Efraim Flashner 2016-05-30gnu: libtar: Fix CVE-2013-4420....* gnu/packages/compression.scm (libtar)[source]: Add patch. * gnu/packages/patches/libtar-CVE-2013-4420.patch: New variable. * gnu/local.mk (dist_patch_DATA): Add it. This is a follow-up to 89d80159b1da81c4017b46a575c3ec5dd9a96c90. Efraim Flashner 2016-05-30gnu: glibc: Refer to the target kernel headers when cross-compiling....This fixes a regression introduced in efc4eb147512fa7a2c6d74d9b296cfc22b1ef198 whereby the build process corresponding to 'guix build glibc --target=mips64el-linux-gnu' would refer to the native headers instead of the target headers, leading to a build failure: ../sysdeps/unix/sysv/linux/statfs64.c: In function ‘__statfs64’: ../sysdeps/unix/sysv/linux/statfs64.c:73:1: error: control reaches end of non-void function [-Werror=return-type] } ^ When we were using CROSS_CPATH instead of CROSS_C_INCLUDE_PATH, the problem was hidden by the fact that CPATH corresponds to '-I' whereas C_INCLUDE_PATH corresponds to '-isystem', and '-isystem' directories are searched after '-I' directories. * gnu/packages/base.scm (glibc)[arguments]: Refer to the kernel headers from '%build-target-inputs' when cross-building. Ludovic Courtès 2016-05-29gnu: libtar: Update to 1.2.20 [fixes CVE-2013-4397, CVE-2013-4420]....* gnu/packages/compression.scm (libtar): Update to 1.2.20. [source]: Add Debian mirror. [arguments]: Add 'autoconf phase. [native-inputs]: Add autoconf, automake, libtool. [inputs]: Add zlib. [home-page]: Point to temporary home. Efraim Flashner 2016-05-29gnu: pciutils: Add kmod support....* gnu/packages/pciutils.scm (pciutils)[inputs]: Add kmod. Efraim Flashner 2016-05-29gnu: pciutils: Use 'modify-phases'....* gnu/packages/pciutils.scm (pciutils)[arguments]: Use 'modify-phases'. Efraim Flashner 2016-05-29gnu: pciutils: Update to 3.5.1....* gnu/packages/pciutils.scm (pciutils): Update to 3.5.1. Efraim Flashner 2016-05-29gnu: rpm: Fix CVE-2014-8118....* gnu/packages/patches/rpm-CVE-2014-8118.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/package-management.scm (rpm): Use it. Leo Famulari 2016-05-29gnu: rpm: Update to 4.12.0.1....* gnu/packages/package-management.scm (rpm): Update to 4.12.0.1. Leo Famulari 2016-05-29gnu: zeromq: Update to 4.0.7 [fixes CVE-2014-9721]....* gnu/packages/networking.scm (zeromq): Update to 4.0.7. Leo Famulari 2016-05-29gnu: libsodium: Update to 1.0.10....* gnu/packages/crypto.scm (libsodium): Update to 1.0.10. Leo Famulari 2016-05-29gnu: procmail: Fix CVE-2014-3618....* gnu/packages/patches/procmail-CVE-2014-3618.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/mail.scm (procmail): Use it. Leo Famulari 2016-05-29gnu: elfutils: Update to 0.166 [fixes CVE-2014-9447]....* gnu/packages/elf.scm (elfutils): Update to 0.166. Leo Famulari 2016-05-29gnu: luajit: Update to 2.0.4....* gnu/packages/lua.scm (luajit): Update to 2.0.4. Efraim Flashner 2016-05-29gnu: lua: Update to 5.2.4....* gnu/packages/lua.scm (lua): Update to 5.2.4. Efraim Flashner 2016-05-29gnu: lua: Use 'modify-phases'....* gnu/packages/lua.scm (lua)[arguments]: Use 'modify-phases'. Efraim Flashner 2016-05-29gnu: lua-5.1: Fix CVE-2014-5461....* gnu/packages/lua.scm (lua-5.1)[source]: Add patch. * gnu/packages/patches/lua-CVE-2014-5461: New file. * gnu/local.mk (dist_patch_DATA): Add it. Efraim Flashner 2016-05-29gnu: retroarch: Update to 1.3.4....* gnu/packages/games.scm (retroarch): Update to 1.3.4. 宋文武 2016-05-28gnu: libyaml: Update to 0.1.6 [fixes CVE-2014-2525]....* gnu/packages/web.scm (libyaml): Update to 0.1.6. Leo Famulari 2016-05-28services: Add urandom-seed-service....Fixes <http://bugs.gnu.org/23605>. * gnu/services/base.scm (urandom-seed-service): New procedure. (%random-seed-file, urandom-seed-service-type): New variables. (%urandom-seed-shepherd-service): New procedure. (%base-services): Call 'urandom-seed-service'. * doc/guix.texi (Base Services): Document it. Leo Famulari 2016-05-28gnu: potrace: Update to 1.13 [fixes CVE-2013-7437]....* gnu/packages/fontutils.scm (potrace): Update to 1.13. Efraim Flashner 2016-05-28gnu: Add Guile-GNOME....* gnu/packages/gtk.scm (guile-gnome): New variable. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Patrick Hetu 2016-05-28gnu: Update diamond to 0.8.3....* gnu/packages/bioinformatics.scm (diamond): Update to 0.8.3. Ben Woodcroft 2016-05-28gnu: Add gcide....* gnu/packages/dictionaries.scm (gcide): New variable. 宋文武 2016-05-28gnu: wxmaxima: Wrap with GSETTINGS_SCHEMA_DIR and XDG_DATA_DIRS....Fixes <http://bugs.gnu.org/22709> and <http://bugs.gnu.org/23260>. * gnu/packages/math.scm (wxmaxima)[arguments]: Wrap with GSETTINGS_SCHEMA_DIR and XDG_DATA_DIRS. 宋文武 2016-05-28gnu: gprolog: Don't install files into "$out/gprolog-1.4.4"....* gnu/packages/gprolog.scm (gprolog)[arguments]: Pass '--with-install-dir' to #:configure-flags. 宋文武 2016-05-28gnu: Add wiredtiger....* gnu/packages/database.scm (wiredtiger): New variable. 宋文武 2016-05-28cve: Use a more compact format for the list of package/versions....On a warm cache, "guix lint -c cve vorbis-tools" goes down from 6.5s to 2.4s. * guix/cve.scm (cpe->package-name): Change to return two values instead of a pair. (cpe->product-alist): New procedure. (%parse-vulnerability-feed): Use it instead of 'filter-map'. (fetch-vulnerabilities): Bump sexp format version to 1. (vulnerabilities->lookup-proc): Adjust accordingly. When #:version is omitted, return a list of vulnerabilities instead of a list of version/vulnerability pairs. * tests/cve.scm (%expected-vulnerabilities) ("vulnerabilities->lookup-proc): Adjust accordingly. Ludovic Courtès 2016-05-27guix package: Inherit the transformed version number....Previously, 'guix package -i emacs --with-source=./emacs-42.tar.gz' would fail to use "42" as the version number in the manifest entry. Reported by piyo on #guix. * guix/scripts/package.scm (process-actions)[transform-entry]: Inherit the version number from the result of TRANSFORM when it's a package. * tests/guix-package.sh: Test it. Ludovic Courtès 2016-05-27gnu: gd: Update to 2.2.1 [fixes CVE-2015-{8874, 8877}]....* gnu/packages/patches/gd-CVE-2016-3074.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. * gnu/packages/gd.scm (gd): Update to 2.2.1. [source]: Remove patch. Update source URL. Leo Famulari 2016-05-27gnu: scrot: Add source mirror....* gnu/packages/xdisorg.scm (scrot)[source]: Add fossies mirror. Efraim Flashner 2016-05-27gnu: serf: Update project source....* gnu/packages/web.scm (serf)[source]: Releases are now hosted by Apache. [home-page]: Project is now hosted by Apache. Efraim Flashner 2016-05-27gnu: xlockmore: Update to 5.47....* gnu/packages/xdisorg.scm (xlockmore): Update to 5.47. Efraim Flashner 2016-05-27gnu: t1lib: Add source mirror....* gnu/packages/fontutils.scm (t1lib)[souce]: Add fossies mirror. Efraim Flashner