From 2a87ab305e02ce4cd9ec14270d1c1a78ed868371 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 2 Oct 2023 08:01:50 +0300 Subject: gnu: Add rust-linux-raw-sys-0.4. * gnu/packages/crates-io.scm (rust-linux-raw-sys-0.4): New variable. (rust-linux-raw-sys-0.3): Inherit from rust-linux-raw-sys-0.4. --- gnu/packages/crates-io.scm | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) (limited to 'gnu/packages/crates-io.scm') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f332304031..3eec57ef24 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -36494,17 +36494,17 @@ facility. Provides a safe interface around the raw system calls allowing user-space programs to perform key manipulation.") (license (list license:asl2.0 license:expat)))) -(define-public rust-linux-raw-sys-0.3 +(define-public rust-linux-raw-sys-0.4 (package (name "rust-linux-raw-sys") - (version "0.3.7") - (source (origin - (method url-fetch) - (uri (crate-uri "linux-raw-sys" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "17s7qr5h82blrxy29014zzhr30jcxcjc8r16v2p31rzcfal7xsgc")))) + (version "0.4.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "linux-raw-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1nw8dqdhai0c7r701bicj3y6vrwc7dgbx9lbcw29ijnr7d562liq")))) (build-system cargo-build-system) (arguments `(#:cargo-inputs @@ -36522,6 +36522,26 @@ Linux userspace APIs.") ;; LLVM exception. See COPYRIGHT in the repository. (license (list license:asl2.0 license:expat)))) +(define-public rust-linux-raw-sys-0.3 + (package + (inherit rust-linux-raw-sys-0.4) + (name "rust-linux-raw-sys") + (version "0.3.7") + (source (origin + (method url-fetch) + (uri (crate-uri "linux-raw-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "17s7qr5h82blrxy29014zzhr30jcxcjc8r16v2p31rzcfal7xsgc")))) + (arguments + `(#:cargo-inputs + (("rust-compiler-builtins" ,rust-compiler-builtins-0.1) + ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)) + #:cargo-development-inputs + (("rust-libc" ,rust-libc-0.2) + ("rust-static-assertions" ,rust-static-assertions-1)))))) + (define-public rust-linux-raw-sys-0.1 (package (inherit rust-linux-raw-sys-0.3) -- cgit v1.2.3 .in?id=fd247542215fbd10f28980f3d5255014b150e95a'>build: 'script/guix' uses our own 'guile' executable....* Makefile.am (do_subst): Substitute @abs_top_builddir@. * scripts/guix.in: Use it. Ludovic Courtès 2018-06-09pull: Install the new Guix in a profile....* guix/scripts/pull.scm (%pull-version): New variable. (build-from-source): Pass #:pull-version to BUILD. (whole-package-for-legacy, derivation->manifest-entry): New procedure. (build-and-install): Rewrite in terms of 'build-and-use-profile'. * guix/scripts/system.scm (maybe-suggest-running-guix-pull)[latest]: Switch to "/current". * scripts/guix.in (augment-load-paths!): Remove use of ~/.config/guix/latest. * build-aux/compile-as-derivation.scm: Replace "/guix/latest/" with "/current/share/guile/site/X.Y" * guix/scripts.scm (warn-about-old-distro)[age]: Check "/current" instead of "/latest". * doc/guix.texi (Invoking guix pull): Document it. * doc/contributing.texi (Running Guix Before It Is Installed): Remove footnote about abusing ~/.config/guix/latest. Ludovic Courtès 2018-01-28guix: Let Emacs detect “scripts/guix.in” appropriate mode....Since commit 6f774d481839f87178c5895ac2d661e141f879b8 which introduces the use of Guile's meta switch in “scripts/guix.in”, Emacs was not using ‘scheme-mode’ for this file. * scripts/guix.in: Replace "-*- scheme -*-" with a local variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Mathieu Lirzin 2018-01-23guix: Refactor script....* scripts/guix.in: Remove empty surrounding ‘let’. Define 'main' as the procedure called when running the script. (maybe-augment-load-paths!): Rename to ... (augment-load-paths!): ... this. Use 'and=>' for 'file-exists?'. (run-guix-main): Rename to ... (main): ... this. Call 'augment-load-paths!'. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Mathieu Lirzin 2018-01-23build: Expand ‘scripts/guix’ at Make time....This moves the complexity of Autotools variable expansion outside of the application code. * scripts/guix.in (config-lookup): Delete. (maybe-augment-load-paths!, run-guix-main): Use fully expanded variables instead of calling ‘config-lookup’. * configure.ac: Don't use AC_CONFIG_FILES for ‘scripts/guix’. Use AC_PROG_SED. * Makefile.am (scripts/guix): New rule. (do_subst): New variable. (CLEANFILES, EXTRA_DIST): Adapt. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Mathieu Lirzin