all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Francisco Gómez García" <espectalll@kydara.com>
To: help-guix@gnu.org
Subject: Cargo build system: Lock file cannot be updated
Date: Sat, 24 Dec 2016 01:43:31 +0100	[thread overview]
Message-ID: <104949EB-C468-4F56-B27B-F7C533CE5129@kydara.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

I’m relatively new to Guix – been casually trying it out from time to time this last 2 years, but never used it beyond installing Emacs and a few extra packages. I decided, for some reason, to learn to create packages by using the new Cargo build system for crates. I ended up going for `ansi-term` (https://crates.io/crates/ansi_term). After managing to get a working script (not hard at all, if you know how!), I attempt to build the package, and after a few seconds the following log appears and the process aborts:

  starting phase `build'
  error: the lock file needs to be updated but --locked was passed to prevent this
  phase `build' failed after 0.0 seconds

I can assume it’s attempting to modify the current crate's Cargo.lock, but obviously is unable to do so. Is this some sort of bug on the build system, or is there any parameter which the script is missing?

My .scm has been attached to the mail, for those who want to take a look. Thank you in advance!


[-- Attachment #2: rust-ansi-term.scm --]
[-- Type: application/octet-stream, Size: 835 bytes --]

(define-module (rust-ansi-term)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system cargo)
  #:use-module (guix licenses))

(define-public rust-ansi-term
  (package
    (name "rust-ansi-term")
    (version "0.9.0")
    (source
      (origin
        (method url-fetch)
        (uri (crate-uri "ansi_term" version))
        (file-name
          (string-append name "-" version ".tar.gz"))
        (sha256
          (base32
            "1xif1bh938qpfc3d0f9xgidibpm65xix11w9gszwqnia00q7rb13"))))
    (build-system cargo-build-system)
    (home-page
      "https://github.com/ogham/rust-ansi-term")
    (synopsis
      "Library for ANSI terminal colours and styles (bold, underline)")
    (description
      "Library for ANSI terminal colours and styles (bold, underline)")
    (license expat)))

             reply	other threads:[~2016-12-24  0:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-24  0:43 Francisco Gómez García [this message]
2016-12-24 13:51 ` Cargo build system: Lock file cannot be updated David Craven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=104949EB-C468-4F56-B27B-F7C533CE5129@kydara.com \
    --to=espectalll@kydara.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.