Commit 3ad5852e authored by wxt's avatar wxt Committed by Alyssa Ross
Browse files

gex: move to by-name && run nixfmt

parent 71f4780f
Loading
Loading
Loading
Loading
+25 −15
Original line number Diff line number Diff line
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, libgit2
, Security
{
  lib,
  stdenv,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  libgit2,
  darwin,
}:

rustPlatform.buildRustPackage rec {
@@ -13,17 +14,19 @@ rustPlatform.buildRustPackage rec {

  src = fetchFromGitHub {
    owner = "Piturnah";
    repo = pname;
    repo = "gex";
    rev = "v${version}";
    hash = "sha256-Xer7a3UtFIv3idchI7DfZ5u6qgDW/XFWi5ihtcREXqo=";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
  buildInputs =
    [
      libgit2
  ] ++ lib.optionals stdenv.isDarwin [
    Security
    ]
    ++ lib.optionals stdenv.isDarwin [
      darwin.apple_sdk.frameworks.Security
    ];

  # force the libgit2-sys crate to use the system libgit2 library
@@ -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";
  };
}
+0 −4
Original line number Diff line number Diff line
@@ -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;
  };