pkgs/gitu: init at 0.5.4

This commit is contained in:
Aaron Bieber 2024-03-11 11:51:15 -06:00
parent 6533feb022
commit 182b2082dd
No known key found for this signature in database
2 changed files with 52 additions and 0 deletions

View File

@ -318,6 +318,7 @@
};
femtolisp = upkgs.callPackage ./pkgs/femtolisp.nix { };
ttfs = upkgs.callPackage ./pkgs/ttfs.nix { };
gitu = upkgs.callPackage ./pkgs/gitu.nix { };
fyne = upkgs.callPackage ./pkgs/fyne.nix { inherit upkgs; };
flake-warn =
spkgs.callPackage ./pkgs/flake-warn.nix { inherit spkgs; };

51
pkgs/gitu.nix Normal file
View File

@ -0,0 +1,51 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, git
,
}:
rustPlatform.buildRustPackage rec {
pname = "gitu";
version = "0.5.4";
src = fetchFromGitHub {
owner = "altsem";
repo = pname;
rev = "v${version}";
hash = "sha256-a4hNgEizxanYE3XuHSCmbV6CkOqhXkznP3Sp0KLFFQs=";
};
cargoHash = "sha256-+CA3UG32oZedzRbt7b0wOlhH/subuym4BCL5SMNzrr8=";
buildInputs = [ git openssl ];
nativeBuildInputs = [ pkg-config ];
# running 30 tests
# test checkout_menu ... FAILED
# test checkout_new_branch ... FAILED
# test discard_branch_confirm ... FAILED
# test fetch_all ... FAILED
# test help_menu ... FAILED
# test fresh_init ... FAILED
# test go_down_past_collapsed ... FAILED
# test log ... FAILED
# test merge_conflict ... FAILED
# test log_other ... FAILED
# test hide_untracked ... FAILED
# test new_file ... FAILED
# test moved_file ... FAILED
# test no_repo ... FAILED
# test new_commit ... FAILED
# test rebase_conflict ... FAILED
# test pull ... FAILED
doCheck = false;
meta = with lib; {
description = " A TUI Git client inspired by Magit ";
homepage = "https://github.com/altsem/gitu";
license = licenses.mit;
maintainers = [ maintainers.qbit ];
};
}