Merge pull request #23270 from yurrriq/update/pkgs/applications/version-management/git-and-tools/gitflow
gitflow: tweak for darwin
This commit is contained in:
commit
f34c9d7885
@ -1,4 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub }:
|
||||
{ pkgs, stdenv, fetchFromGitHub }:
|
||||
|
||||
with pkgs.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gitflow";
|
||||
@ -12,10 +14,17 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1i8bwi83qcqvi8zrkjn4mp2v8v7y11fd520wpg2jgy5hqyz34chg";
|
||||
};
|
||||
|
||||
buildInputs = optionals (stdenv.isDarwin) [ pkgs.makeWrapper ];
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray+=(prefix="$out")
|
||||
'';
|
||||
|
||||
postInstall = optional (stdenv.isDarwin) ''
|
||||
wrapProgram $out/bin/git-flow \
|
||||
--set FLAGS_GETOPT_CMD ${pkgs.getopt}/bin/getopt
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/petervanderdoes/gitflow;
|
||||
description = "Extend git with the Gitflow branching model";
|
||||
|
Loading…
Reference in New Issue
Block a user