guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile, Guix, and C extensions


From: Stephen Scheck
Subject: Re: Guile, Guix, and C extensions
Date: Fri, 3 Apr 2020 14:04:00 -0400

> Could you show us your my-module.scm please?

The source is not yet ready for public distribution, so I've elided
references:

    (use-modules
      ((guix licenses) #:prefix license:)
      (guix utils)
      (guix packages)
      (guix git-download)
      (guix build-system gnu)
      (gnu packages)
      (gnu packages autotools)
      (gnu packages base)
      (gnu packages texinfo)
      (gnu packages pkg-config)
      (gnu packages guile)
      (gnu packages guile-xyz))

    (define-public my-module
      (let ((commit "..."))
        (package
          (name "my-module")
          (version (string-append "0.1-" (string-take commit 7)))
          (source (origin
                    (method git-fetch)
                    (uri (git-reference
                      (url "...")
                      (commit commit)))
                    (sha256
                     (base32
                      "..."))
                    (file-name (git-file-name name version))))
          (build-system gnu-build-system)
          (native-inputs `(("pkg-config" ,pkg-config)
                           ("autoconf" ,autoconf)
                           ("automake" ,automake)
                           ("libtool" ,libtool)
                           ("texinfo" ,texinfo)))
          (inputs `(("guile" ,guile-2.2)))
          (synopsis "...")
          (description "...")
          (home-page "...")
          (license license:lgpl3+))))

> I was thinking of something more specific actually, because the
> gnu-build-system in Guix sets prefix anyway.

I don't follow ... could you give an example?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]