Unverified Commit 90cdc7bd authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #327646 from Aleksanaa/git-backup

git-backup-go: init at 1.6.0; git-backup: remove
parents 02bc99fd afb1184e
Loading
Loading
Loading
Loading
+0 −1966

File deleted.

Preview size limit exceeded, changes collapsed.

+0 −34
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security }:

rustPlatform.buildRustPackage rec {
  pname = "git-backup";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "jsdw";
    repo = pname;
    rev = "v${version}";
    sha256 = "0h31j8clvk4gkw4mgva9p0ypf26zhf7f0y564fdmzyw6rsz9wzcj";
  };

  cargoLock = {
    lockFile = ./Cargo.lock;
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];

  # update Cargo.lock to work with openssl 3
  postPatch = ''
    ln -sf ${./Cargo.lock} Cargo.lock
  '';

  meta = with lib; {
    homepage = "https://github.com/jsdw/git-backup";
    description = "Tool to help you backup your git repositories from services like GitHub";
    license = licenses.mit;
    maintainers = with maintainers; [ cafkafk ];
    mainProgram = "git-backup";
  };
}
+36 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  testers,
  git-backup-go,
}:

buildGoModule rec {
  pname = "git-backup-go";
  version = "1.6.0";

  src = fetchFromGitHub {
    owner = "ChappIO";
    repo = "git-backup";
    rev = "v${version}";
    hash = "sha256-C/ha/GuRvqxmgrbOgkhup1tNoDT3pDIbE+nO5eMZGlY=";
  };

  vendorHash = "sha256-wzivnTe9Rx3YLz6lvrzsLiJIbxX7QE059Kzb4rUfD+s=";

  ldflags = [ "-X main.Version=${version}" ];

  passthru.tests.version = testers.testVersion {
    package = git-backup-go;
    command = "git-backup -version";
  };

  meta = {
    description = "Backup all your GitHub & GitLab repositories";
    homepage = "https://github.com/ChappIO/git-backup";
    license = lib.licenses.asl20;
    mainProgram = "git-backup";
    maintainers = with lib.maintainers; [ aleksana ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -471,6 +471,7 @@ mapAliases ({
  ghostwriter = libsForQt5.kdeGear.ghostwriter; # Added 2023-03-18
  go-dependency-manager = throw "'go-dependency-manager' is unmaintained and the go community now uses 'go.mod' mostly instead"; # Added 2023-10-04
  gotktrix = throw "'gotktrix' has been removed, as it was broken and unmaintained"; # Added 2023-12-06
  git-backup = throw "git-backup has been removed, as it has been abandoned upstream. Consider using git-backup-go instead.";
  git-credential-1password = throw "'git-credential-1password' has been removed, as the upstream project is deleted."; # Added 2024-05-20
  git-subset = throw "'git-subset' has been removed in favor of 'git-filter-repo'"; # Added 2023-01-13

+0 −4
Original line number Diff line number Diff line
@@ -2266,10 +2266,6 @@ with pkgs;
  git-backdate = callPackage ../applications/version-management/git-backdate { };
  git-backup = callPackage ../applications/version-management/git-backup {
    inherit (darwin.apple_sdk.frameworks) Security;
  };
  git-big-picture = callPackage ../applications/version-management/git-big-picture { };
  git-bars = callPackage ../applications/version-management/git-bars { };