tere: init at 1.1.0
A failing test was keeping it from building. I [confirmed with the dev](https://github.com/mgunyho/tere/issues/44) it's known and ignored so I commented it out with a patch. This app isn't that useful until some [shell hooks have been added.](https://github.com/mgunyho/tere#setup) So I hope to add a config option to home-manager such as: ```nix programs.tere = { enabled = true; useBashIntegration = true; useFishIntegration = true; }; ```
This commit is contained in:
parent
83322150b0
commit
bf182e4dec
19
pkgs/tools/misc/tere/brokentest.patch
Normal file
19
pkgs/tools/misc/tere/brokentest.patch
Normal file
@ -0,0 +1,19 @@
|
||||
diff --git a/src/app_state.rs b/src/app_state.rs
|
||||
index e44acb6..713642a 100644
|
||||
--- a/src/app_state.rs
|
||||
+++ b/src/app_state.rs
|
||||
@@ -1272,7 +1272,7 @@ mod tests {
|
||||
assert_eq!(s.cursor_pos, 1);
|
||||
assert_eq!(s.scroll_pos, 2);
|
||||
}
|
||||
-
|
||||
+ /*
|
||||
#[test]
|
||||
fn test_advance_search_with_filter_search_and_scrolling2() {
|
||||
let mut s = create_test_state_with_buf(
|
||||
@@ -1302,4 +1302,5 @@ mod tests {
|
||||
assert_eq!(s.cursor_pos, 1);
|
||||
assert_eq!(s.scroll_pos, 0);
|
||||
}
|
||||
+ */
|
||||
}
|
26
pkgs/tools/misc/tere/default.nix
Normal file
26
pkgs/tools/misc/tere/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ lib, fetchFromGitHub, rustPlatform }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "tere";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mgunyho";
|
||||
repo = "tere";
|
||||
rev = "v${version}";
|
||||
sha256 = "BD7onBkFyo/JAw/neqL9N9nBYSxoMrmaG6egeznV9Xs=";
|
||||
};
|
||||
|
||||
cargoSha256 = "gAq9ULQ2YFPmn4IsHaYrC0L7NqbPUWqXSb45ZjlMXEs=";
|
||||
|
||||
# This test confirmed not working.
|
||||
# https://github.com/mgunyho/tere/issues/44
|
||||
cargoPatches = [ ./brokentest.patch ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A faster alternative to cd + ls";
|
||||
homepage = "https://github.com/mgunyho/tere";
|
||||
license = licenses.eupl12;
|
||||
maintainers = with maintainers; [ ProducerMatt ];
|
||||
};
|
||||
}
|
@ -1275,6 +1275,8 @@ with pkgs;
|
||||
|
||||
tauon = callPackage ../applications/audio/tauon { };
|
||||
|
||||
tere = callPackage ../tools/misc/tere { };
|
||||
|
||||
termusic = callPackage ../applications/audio/termusic { };
|
||||
|
||||
tfk8s = callPackage ../tools/misc/tfk8s { };
|
||||
|
Loading…
Reference in New Issue
Block a user