diff --git a/flake.nix b/flake.nix index 71e3dcb..aee1276 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; diff --git a/pkgs/gitu.nix b/pkgs/gitu.nix new file mode 100644 index 0000000..09c7ac6 --- /dev/null +++ b/pkgs/gitu.nix @@ -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 ]; + }; +}