Add gitu
This commit is contained in:
parent
323b0291df
commit
7b82251c57
4 changed files with 52 additions and 1 deletions
|
@ -231,6 +231,7 @@
|
|||
packages = {
|
||||
incus-ui = pkgs.callPackage ./pkgs/incus-ui { };
|
||||
openfga = pkgs.callPackage ./pkgs/openfga { };
|
||||
gitu = pkgs.callPackage ./pkgs/gitu { };
|
||||
};
|
||||
|
||||
devShells.default =
|
||||
|
|
|
@ -176,6 +176,9 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
home.packages = [ pkgs.git-credential-manager ];
|
||||
home.packages = [
|
||||
pkgs.git-credential-manager
|
||||
pkgs.gitu
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -44,4 +44,5 @@ _final: prev: {
|
|||
|
||||
incus-ui = prev.pkgs.callPackage ../pkgs/incus-ui { };
|
||||
openfga = prev.pkgs.callPackage ../pkgs/openfga { };
|
||||
gitu = prev.pkgs.callPackage ../pkgs/gitu { };
|
||||
}
|
||||
|
|
46
pkgs/gitu/default.nix
Normal file
46
pkgs/gitu/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
libgit2,
|
||||
openssl,
|
||||
zlib,
|
||||
stdenv,
|
||||
darwin,
|
||||
git,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "gitu";
|
||||
version = "0.5.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "altsem";
|
||||
repo = "gitu";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-a4hNgEizxanYE3XuHSCmbV6CkOqhXkznP3Sp0KLFFQs=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-+CA3UG32oZedzRbt7b0wOlhH/subuym4BCL5SMNzrr8=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
git
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libgit2
|
||||
openssl
|
||||
zlib
|
||||
] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A TUI Git client inspired by Magit";
|
||||
homepage = "https://github.com/altsem/gitu";
|
||||
changelog = "https://github.com/altsem/gitu/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
mainProgram = "gitu";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue