radicle-node: 1.1 → 1.2 (#413302)
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
commit 61865b5b5ad715e2b812087947281f0add9aa05e
|
||||
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
|
||||
Date: 2024-11-19 14:38:38 +0100
|
||||
|
||||
cob: fix documentation
|
||||
|
||||
`no_run` will compile but not run the code. Use `ignore` instead, and also added
|
||||
`rust` for syntax highlighting.
|
||||
|
||||
diff --git a/radicle-cob/src/backend/git/stable.rs b/radicle-cob/src/backend/git/stable.rs
|
||||
index 0d8ea27b..ef18ae55 100644
|
||||
--- a/radicle-cob/src/backend/git/stable.rs
|
||||
+++ b/radicle-cob/src/backend/git/stable.rs
|
||||
@@ -53,7 +53,7 @@ pub fn read_timestamp() -> i64 {
|
||||
///
|
||||
/// # Usage
|
||||
///
|
||||
-/// ```no_run
|
||||
+/// ```rust, ignore
|
||||
/// let oid1 = with_advanced_timestamp(|| cob.update("New revision OID"));
|
||||
/// let oid2 = with_advanced_timestamp(|| cob.update("Another revision OID"));
|
||||
/// ```
|
||||
@@ -19,20 +19,22 @@
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "radicle-node";
|
||||
version = "1.1.0";
|
||||
version = "1.2.0";
|
||||
env.RADICLE_VERSION = version;
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://seed.radicle.xyz/z3gqcJUoA1n9HaHKufZs5FCSGazv5.git";
|
||||
rev = "refs/namespaces/z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/refs/tags/v${version}";
|
||||
hash = "sha256-M4oz9tWjI/eqV4Gz1b512MEmvsZ5u3R9y6P9VeeH9CA=";
|
||||
rev = "refs/namespaces/z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/refs/tags/v${version}";
|
||||
hash = "sha256-AWgLhL6GslE3r2FcZu2imV5ZtEKlUD+a4C5waRGO2lM=";
|
||||
leaveDotGit = true;
|
||||
postFetch = ''
|
||||
git -C $out rev-parse HEAD > $out/.git_head
|
||||
git -C $out log -1 --pretty=%ct HEAD > $out/.git_time
|
||||
rm -rf $out/.git
|
||||
'';
|
||||
};
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-SzwBQxTqQafHDtH8+OWkAMDnKh3AH0PeSMBWpHprQWM=";
|
||||
|
||||
patches = [
|
||||
./61865b5b5ad715e2b812087947281f0add9aa05e.patch
|
||||
];
|
||||
cargoHash = "sha256-/6VlRwWtJfHf6tXD2HJUTbThwTYeZFTJqtaxclrm3+c=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
asciidoctor
|
||||
@@ -41,6 +43,11 @@ rustPlatform.buildRustPackage rec {
|
||||
];
|
||||
nativeCheckInputs = [ git ];
|
||||
|
||||
preBuild = ''
|
||||
export GIT_HEAD=$(<$src/.git_head)
|
||||
export SOURCE_DATE_EPOCH=$(<$src/.git_time)
|
||||
'';
|
||||
|
||||
# tests regularly time out on aarch64
|
||||
doCheck = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user