2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, coreutils, gnugrep, gnused, makeWrapper, git
|
2018-06-12 03:21:51 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "git-sync";
|
2018-06-12 03:21:51 +01:00
|
|
|
version = "20151024";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simonthum";
|
|
|
|
repo = "git-sync";
|
|
|
|
rev = "eb9adaf2b5fd65aac1e83d6544b9076aae6af5b7";
|
|
|
|
sha256 = "01if8y93wa0mwbkzkzx2v1vqh47zlz4k1dysl6yh5rmppd1psknz";
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-06-12 03:21:51 +01:00
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a git-sync $out/bin/git-sync
|
|
|
|
'';
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
wrapperPath = with lib; makeBinPath [
|
2018-06-12 03:21:51 +01:00
|
|
|
coreutils
|
|
|
|
git
|
|
|
|
gnugrep
|
|
|
|
gnused
|
|
|
|
];
|
|
|
|
|
|
|
|
fixupPhase = ''
|
|
|
|
patchShebangs $out/bin
|
|
|
|
|
|
|
|
wrapProgram $out/bin/git-sync \
|
|
|
|
--prefix PATH : "${wrapperPath}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A script to automatically synchronize a git repository";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/simonthum/git-sync";
|
2021-01-15 13:21:58 +00:00
|
|
|
maintainers = with lib.maintainers; [ imalison ];
|
|
|
|
license = lib.licenses.cc0;
|
|
|
|
platforms = with lib.platforms; unix;
|
2018-06-12 03:21:51 +01:00
|
|
|
};
|
|
|
|
}
|