Skip to content

Commit

Permalink
tere: 1.5.0 -> 1.5.1-unstable-2024-04-01
Browse files Browse the repository at this point in the history
  • Loading branch information
ProducerMatt committed Jun 3, 2024
1 parent d7aefbf commit b465dca
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions pkgs/tools/misc/tere/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
{ lib, fetchFromGitHub, rustPlatform }:
{ lib, fetchFromGitHub, rustPlatform, ncurses, stdenv }:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage {
pname = "tere";
version = "1.5.0";
version = "1.5.1-unstable-2024-04-01";

src = fetchFromGitHub {
owner = "mgunyho";
repo = "tere";
rev = "v${version}";
sha256 = "sha256-xqbFBRzBfTwSdkC8e85yANdVA45G6E1FYlTXP8QfVIk=";
rev = "659422ecb2810f91446a71e52b82524d4f1755d8";
sha256 = "sha256-CH8gcfkjSAknG6kKHp0aODcrjEJjzHbgeVaE/PK1zRA=";
};

cargoHash = "sha256-Y2Zgo/VAJxzQd2cXxyiJS5AqcVRClAuUsEogivK3EJw=";
cargoHash = "sha256-GtGWuvYdxP3dgGekoXYaM+lnZJBgJX1UIWe0EH+/52M=";

postPatch = ''
rm .cargo/config.toml;
'';
nativeBuildInputs = [
# ncurses provides the tput command needed for integration tests
# https://github.com/mgunyho/tere/issues/93#issuecomment-2029624187
ncurses
];

checkFlags = lib.optionals stdenv.isDarwin [
# Unexplained fail
# https://github.com/NixOS/nixpkgs/pull/298527#issuecomment-2053758845
"--skip=first_run_prompt_accept"
];

meta = with lib; {
description = "A faster alternative to cd + ls";
Expand Down

0 comments on commit b465dca

Please sign in to comment.