gex: move to by-name && run nixfmt

This commit is contained in:
wxt 2024-09-04 21:05:24 +08:00 committed by Alyssa Ross
parent 71f4780f6e
commit 3ad5852e0a
2 changed files with 25 additions and 19 deletions

View File

@ -1,10 +1,11 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, libgit2
, Security
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
libgit2,
darwin,
}:
rustPlatform.buildRustPackage rec {
@ -13,18 +14,20 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "Piturnah";
repo = pname;
repo = "gex";
rev = "v${version}";
hash = "sha256-Xer7a3UtFIv3idchI7DfZ5u6qgDW/XFWi5ihtcREXqo=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libgit2
] ++ lib.optionals stdenv.isDarwin [
Security
];
buildInputs =
[
libgit2
]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
# force the libgit2-sys crate to use the system libgit2 library
LIBGIT2_NO_VENDOR = 1;
@ -35,8 +38,15 @@ rustPlatform.buildRustPackage rec {
description = "Git Explorer: cross-platform git workflow improvement tool inspired by Magit";
homepage = "https://github.com/Piturnah/gex";
changelog = "https://github.com/Piturnah/gex/releases/tag/${src.rev}";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ azd325 evanrichter piturnah ];
license = with licenses; [
asl20 # or
mit
];
maintainers = with maintainers; [
azd325
evanrichter
piturnah
];
mainProgram = "gex";
};
}

View File

@ -2161,10 +2161,6 @@ with pkgs;
forgejo-lts = callPackage ../by-name/fo/forgejo/lts.nix { };
gex = callPackage ../applications/version-management/gex {
inherit (darwin.apple_sdk.frameworks) Security;
};
gfold = callPackage ../applications/version-management/gfold {
inherit (darwin.apple_sdk.frameworks) Security;
};