Nix Observability Daemon
observability nix
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

keep derivation hash in prefix

+2 -7
+2 -7
src/main.rs
··· 537 537 } 538 538 } 539 539 540 - // Strip /nix/store/<32-char-hash>- prefix to get the human-readable package name. 540 + // Strip /nix/store/ prefix, keep the hash and package name. 541 541 fn drv_name(path: &str) -> &str { 542 - let s = path.strip_prefix("/nix/store/").unwrap_or(path); 543 - if s.len() > 33 && s.as_bytes()[32] == b'-' && s[..32].chars().all(|c| c.is_ascii_alphanumeric()) { 544 - &s[33..] 545 - } else { 546 - s 547 - } 542 + path.strip_prefix("/nix/store/").unwrap_or(path) 548 543 } 549 544 550 545 fn display_stats(stats: Stats) {