Unverified Commit cb8f83c0 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

Update git-sync 0-unstable-2024-02-15 → 0-unstable-2024-11-30 (#361820)

parents 757befc1 8a3176ac
Loading
Loading
Loading
Loading
+28 −10
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, coreutils, git, gnugrep, gnused, makeWrapper, inotify-tools }:
{
  lib,
  stdenv,
  fetchFromGitHub,
  coreutils,
  git,
  gnugrep,
  gnused,
  makeWrapper,
  inotify-tools,
  nix-update-script,
}:

stdenv.mkDerivation rec {
  pname = "git-sync";
  version = "0-unstable-2024-02-15";
  version = "0-unstable-2024-11-30";

  src = fetchFromGitHub {
    owner = "simonthum";
    repo = "git-sync";
    rev = "493b0155fb974b477b6ea623d6e41e13ddad8500";
    hash = "sha256-hsq+kpB+akjbFKBeHMsP8ibrtygEG2Yf2QW9vFFIano=";
    rev = "7242291edf543ecc1bb9de8f47086bb69a5cb9f7";
    hash = "sha256-t1NVgp+ELmTMK0N1fFFJCoKQd8mSYSMAIDG9+kNs3Ok=";
  };

  nativeBuildInputs = [ makeWrapper ];
@@ -21,12 +32,15 @@ stdenv.mkDerivation rec {
    cp -a contrib/git-* $out/bin/
  '';

  wrapperPath = lib.makeBinPath ([
  wrapperPath = lib.makeBinPath (
    [
      coreutils
      git
      gnugrep
      gnused
  ] ++ lib.optionals stdenv.hostPlatform.isLinux [ inotify-tools ]);
    ]
    ++ lib.optionals stdenv.hostPlatform.isLinux [ inotify-tools ]
  );

  postFixup = ''
    wrap_path="${wrapperPath}":$out/bin
@@ -38,6 +52,10 @@ stdenv.mkDerivation rec {
      --prefix PATH : $wrap_path
  '';

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    description = "Script to automatically synchronize a git repository";
    homepage = "https://github.com/simonthum/git-sync";