2021-01-11 07:54:33 +00:00
|
|
|
{ pkgs, lib, stdenv, fetchFromGitHub }:
|
2017-02-28 11:52:25 +00:00
|
|
|
|
|
|
|
with pkgs.lib;
|
2013-10-30 09:28:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-01-27 16:15:42 +00:00
|
|
|
pname = "gitflow";
|
2021-01-18 21:56:44 +00:00
|
|
|
version = "1.12.3";
|
2013-10-30 09:28:05 +00:00
|
|
|
|
2016-01-27 16:15:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "petervanderdoes";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-18 21:56:44 +00:00
|
|
|
sha256 = "sha256-kHirHG/bfsU6tKyQ0khNSTyChhzHfzib+HyA3LOtBI8=";
|
2013-10-30 09:28:05 +00:00
|
|
|
};
|
|
|
|
|
2017-05-06 07:05:23 +01:00
|
|
|
buildInputs = [ pkgs.makeWrapper ];
|
2017-02-28 11:52:25 +00:00
|
|
|
|
2013-10-30 09:28:05 +00:00
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=(prefix="$out")
|
|
|
|
'';
|
|
|
|
|
2017-05-06 07:05:23 +01:00
|
|
|
postInstall = ''
|
2017-02-28 11:52:25 +00:00
|
|
|
wrapProgram $out/bin/git-flow \
|
2017-05-06 07:05:23 +01:00
|
|
|
--set FLAGS_GETOPT_CMD ${pkgs.getopt}/bin/getopt \
|
|
|
|
--suffix PATH : ${pkgs.git}/bin
|
2017-02-28 11:52:25 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/petervanderdoes/gitflow";
|
2015-06-22 11:17:50 +01:00
|
|
|
description = "Extend git with the Gitflow branching model";
|
|
|
|
longDescription = ''
|
|
|
|
A set of scripts that provide high-level repository operations
|
|
|
|
for managing feature/release/hotfix branches in a Git repository,
|
|
|
|
particularly suited to be utilised to follow Vincent Driessen's
|
|
|
|
branching model.
|
|
|
|
'';
|
2013-10-30 09:28:05 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.all;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ offline ];
|
2013-10-30 09:28:05 +00:00
|
|
|
};
|
|
|
|
}
|