2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
2024-01-02 11:29:13 +00:00
|
|
|
, stdenv
|
2022-10-21 18:38:19 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2023-07-15 17:15:38 +00:00
|
|
|
, pkg-config
|
2024-01-02 11:29:13 +00:00
|
|
|
, libgit2
|
|
|
|
, Security
|
2022-10-21 18:38:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gex";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.6.4";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Piturnah";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-Xer7a3UtFIv3idchI7DfZ5u6qgDW/XFWi5ihtcREXqo=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
buildInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
libgit2
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
2023-08-10 07:59:29 +00:00
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
# force the libgit2-sys crate to use the system libgit2 library
|
|
|
|
LIBGIT2_NO_VENDOR = 1;
|
|
|
|
|
|
|
|
cargoHash = "sha256-HNz1wwn0eUhNR6ZLLPMse8LmAS4CzADx0ZR9gJgJQCg=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Git Explorer: cross-platform git workflow improvement tool inspired by Magit";
|
|
|
|
homepage = "https://github.com/Piturnah/gex";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/Piturnah/gex/releases/tag/${src.rev}";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ azd325 evanrichter piturnah ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "gex";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|