My First GNU Guix Patch

Over the weekend, I decided to try out GNU Guix: A fully functional package manager based on Nix and a distribution of the GNU system. I'm a big proponent of GNU Guile, thus I was excited to see a DSL for package management written with Guile.

I was told that libtheora would be pretty easy to package, and it was. Here's what the package definition looks like:

(define libtheora
    (name "libtheora")
    (version "1.1.1")
    (source (origin
             (method url-fetch)
             (uri (string-append ""
                                 version ".tar.xz"))
    (build-system gnu-build-system)
    (inputs `(("libvorbis" ,libvorbis)))
    ;; The .pc files refer to libogg.
    (propagated-inputs `(("libogg" ,libogg)))
    (synopsis "Library implementing the Theora video format")
     "The libtheora library implements the ogg theora video format,
a fully open, non-proprietary, patent-and-royalty-free, general-purpose
compressed video format.")
    (license license:bsd-3)
    (home-page "")))

Pretty slick, eh? Now, I'm starting to work on packaging SDL (1.2 and 2) and the SDL extensions (gfx, ttf, etc.), which are not quite as easy. I hope to package all of the dependencies that guile-2d will need to be available as a Guix package.