unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 1d37ad286371b44fc30f1361eb64c77e8daba55e 999 bytes (raw)
name: gnu/packages/patches/mission-center-gatherer.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
This patch makes the `gatherer` component of `mission-center' use the nvtop
sources provided as a `gexp` artifact instead of fetching the sources at
build-time.

diff --git a/src/sys_info_v2/gatherer/build/build.rs b/src/sys_info_v2/gatherer/build/build.rs
index 3c287ee..f0af0ff 100644
--- a/src/sys_info_v2/gatherer/build/build.rs
+++ b/src/sys_info_v2/gatherer/build/build.rs
@@ -60,11 +60,7 @@ fn prepare_third_party_sources() -> Result<Vec<std::path::PathBuf>, Box<dyn std:
                     break;
                 }
 
-                let output_path = util::download_file(
-                    &package.source_url,
-                    &format!("{}", out_dir.display()),
-                    Some(&package.source_hash),
-                )?;
+                let output_path = std::env::var("CARGO_MANIFEST_DIR")? + "/../../../../nvtop.tar.gz";
 
                 let mut archive = std::fs::File::open(&output_path)?;
                 let tar = flate2::read::GzDecoder::new(&mut archive);

debug log:

solving 1d37ad2863 ...
found 1d37ad2863 in https://yhetil.org/guix-patches/DU2P193MB2132AF6AC65D68ED3B3B51F7F3BCA@DU2P193MB2132.EURP193.PROD.OUTLOOK.COM/

applying [1/1] https://yhetil.org/guix-patches/DU2P193MB2132AF6AC65D68ED3B3B51F7F3BCA@DU2P193MB2132.EURP193.PROD.OUTLOOK.COM/
diff --git a/gnu/packages/patches/mission-center-gatherer.patch b/gnu/packages/patches/mission-center-gatherer.patch
new file mode 100644
index 0000000000..1d37ad2863

1:18: trailing whitespace.
 
1:25: trailing whitespace.
 
Checking patch gnu/packages/patches/mission-center-gatherer.patch...
Applied patch gnu/packages/patches/mission-center-gatherer.patch cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 1d37ad286371b44fc30f1361eb64c77e8daba55e	gnu/packages/patches/mission-center-gatherer.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).