summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinter <winter@winter.cafe>2022-07-25 00:09:03 -0400
committerGitHub <noreply@github.com>2022-07-25 00:09:03 -0400
commit01304725d407686c08e4ad98a43b50329f5f265f (patch)
treebb656067a58e47d2438b2a2570d5edbafcb5660f
parentMerge pull request #182746 from NixOS/backport-180252-to-release-22.05 (diff)
parenttere: init at 1.1.0 (diff)
downloadnixpkgs-01304725d407686c08e4ad98a43b50329f5f265f.tar.gz
Merge pull request #182729 from NixOS/backport-182654-to-release-22.05
[Backport release-22.05] tere: init at 1.1.0
-rw-r--r--maintainers/maintainer-list.nix6
-rw-r--r--pkgs/tools/misc/tere/brokentest.patch19
-rw-r--r--pkgs/tools/misc/tere/default.nix26
-rw-r--r--pkgs/top-level/all-packages.nix2
4 files changed, 53 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index 9986f669c09f..4aee4500cfa1 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -10302,6 +10302,12 @@
}
];
};
+ ProducerMatt = {
+ name = "Matthew Pherigo";
+ email = "ProducerMatt42@gmail.com";
+ github = "ProducerMatt";
+ githubId = 58014742;
+ };
Profpatsch = {
email = "mail@profpatsch.de";
github = "Profpatsch";
diff --git a/pkgs/tools/misc/tere/brokentest.patch b/pkgs/tools/misc/tere/brokentest.patch
new file mode 100644
index 000000000000..f5b9eb741ea0
--- /dev/null
+++ b/pkgs/tools/misc/tere/brokentest.patch
@@ -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);
+ }
++ */
+ }
diff --git a/pkgs/tools/misc/tere/default.nix b/pkgs/tools/misc/tere/default.nix
new file mode 100644
index 000000000000..e1dac5a6bf2a
--- /dev/null
+++ b/pkgs/tools/misc/tere/default.nix
@@ -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 ];
+ };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 9bfed87a1cdc..3785d87b41d1 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1186,6 +1186,8 @@ with pkgs;
tauon = callPackage ../applications/audio/tauon { };
+ tere = callPackage ../tools/misc/tere { };
+
termusic = callPackage ../applications/audio/termusic { };
tfk8s = callPackage ../tools/misc/tfk8s { };