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

This commit is contained in:
Gaétan Lepage
2025-02-13 09:44:40 +01:00
committed by GitHub
+28 -10
View File
@@ -1,14 +1,25 @@
{ 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 ([
coreutils
git
gnugrep
gnused
] ++ lib.optionals stdenv.hostPlatform.isLinux [ inotify-tools ]);
wrapperPath = lib.makeBinPath (
[
coreutils
git
gnugrep
gnused
]
++ 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";