Last active
November 29, 2022 09:48
-
-
Save reyman/84fa04ac1dee3efe26b8ab8c3434ffa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(list (channel | |
(name 'guix) | |
(url "https://git.savannah.gnu.org/git/guix.git") | |
(branch "master") | |
(commit | |
"ae820c317cef09a297e949911ebeb258a87ef912") | |
(introduction | |
(make-channel-introduction | |
"9edb3f66fd807b096b48283debdcddccfea34bad" | |
(openpgp-fingerprint | |
"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) | |
(channel | |
(name 'guix-science) | |
(url "https://github.com/guix-science/guix-science.git") | |
(branch "master") | |
(commit | |
"5993cb79373293bb705970c4702b971f4e1d96b5") | |
(introduction | |
(make-channel-introduction | |
"b1fe5aaff3ab48e798a4cce02f0212bc91f423dc" | |
(openpgp-fingerprint | |
"CA4F 8CF4 37D7 478F DA05 5FD4 4213 7701 1A37 8446")))) | |
(channel | |
(name 'my-rust) | |
(url "file:///home/reyman/Projets/Guix-ified/scripts/deno/")) | |
(channel | |
(name 'guix-hpc) | |
(url "https://gitlab.inria.fr/guix-hpc/guix-hpc")) | |
(channel | |
(name 'nonguix) | |
(url "https://gitlab.com/nonguix/nonguix") | |
(branch "master") | |
(commit | |
"dfc2b256ebe208605c7da1b35ab0bfd8304ae675") | |
(introduction | |
(make-channel-introduction | |
"897c1a470da759236cc11798f4e0a5f7d4d59fbc" | |
(openpgp-fingerprint | |
"2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-module (deno-dep rust-v8-0-49) | |
#:use-module ( deno-dep rust-fslock-0-1) | |
#:use-module ( deno-dep rust-which-4-2-5) | |
#:use-module ( deno-dep rust-libc-0-2-126) | |
#:use-module ( gnu packages crates-io) | |
#:use-module ( gnu packages rust) | |
#:use-module ( guix utils) | |
#:use-module ( guix download) | |
#:use-module ( guix packages) | |
#:use-module ( gnu packages) | |
#:use-module (gnu packages guile) | |
#:use-module ( gnu packages ninja) | |
#:use-module (gnu packages commencement) | |
#:use-module (gnu packages build-tools) | |
#:use-module (deno-dep rust-align-data-0-1-0) | |
#:use-module (deno-dep rust-trybuild-1-0-61) | |
#:use-module (gnu packages llvm) | |
#:use-module (gnu packages base) | |
#:use-module (gnu packages python-xyz) | |
#:use-module (gnu packages python) | |
#:use-module (gnu packages ccache) | |
#:use-module (gnu packages glib) | |
#:use-module (gnu packages gcc) | |
#:use-module (gnu packages perl) | |
#:use-module (gnu packages pkg-config) | |
#:use-module (gnu packages linux) | |
#:use-module ( (guix licenses) #:prefix license:) | |
#:use-module ( guix build-system cargo)) | |
(define-public rust-v8-0.49 | |
(package | |
(name "rust-v8") | |
(version "0.49.0") | |
(source (origin | |
(method url-fetch) | |
(uri (crate-uri "v8" version)) | |
(file-name (string-append name "-" version ".tar.gz")) | |
(sha256 | |
(base32 | |
"1kmnzpcvn6gj19brgyf6gzvjz3bwj0yb1qz5rfmppmin6gbvl72s")) | |
(modules '((guix build utils))) | |
(snippet | |
'(begin | |
(substitute* "build.rs" | |
(("\"using Chromiums clang\"") "\"Info on env {}\", env!(\"CLANG_BASE_PATH\")") | |
(( "join\\(\"bin\"\\)\\.join\\(\"clang\"\\);") "join(\"bin\").join(\"clang\"); println!(\"base_path {}\",clang_path.display()); ")))))) | |
;; https://github.com/denoland/rusty_v8/pull/1063/commits/7070cb6f38d3b70d50ebd9d40eb8e255fa5b6883 | |
(build-system cargo-build-system) | |
(arguments | |
`(#:phases | |
(modify-phases %standard-phases | |
(add-before 'unpack 'set_env | |
(lambda _ | |
(setenv "V8_FROM_SOURCE" "1") | |
(setenv "XDG_CACHE_HOME" "cache") | |
(setenv "RUST_BACKTRACE" "full") | |
(setenv "AR" "llvm-ar") | |
(setenv "GN_ARGS" "v8_builtins_profiling_log_file=\"\"") | |
(setenv "CLANG_BASE_PATH" (string-append (dirname (dirname (which "clang"))))) | |
#t))) | |
#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1) | |
("rust-fslock" ,rust-fslock-0.1) | |
("rust-lazy-static" ,rust-lazy-static-1) | |
("rust-libc" ,rust-libc-0.2.126) | |
("rust-which" ,rust-which-4.2.5) | |
("rust-trybuild",rust-trybuild-1.0.61) | |
("rust-align-data" ,rust-align-data-0.1.0)))) | |
(inputs (list (list gcc "lib") glibc clang-toolchain lld glib python-wrapper perl)) | |
(native-inputs (list linux-libre-headers ninja gn ccache python pkg-config python-pkgconfig)) | |
(home-page "https://github.com/denoland/rusty_v8") | |
(synopsis "Rust bindings to V8") | |
(description "Rust bindings to V8") | |
(license license:expat))) | |
rust-v8-0.49 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment