2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, buildPerlPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, openssh
|
|
|
|
, GitRepository
|
|
|
|
, URI
|
|
|
|
, XMLMini
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPerlPackage {
|
|
|
|
pname = "ham-unstable";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "2022-10-26";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kernkonzept";
|
|
|
|
repo = "ham";
|
2023-02-09 11:40:11 +00:00
|
|
|
rev = "f2f10516177d00a79fe81701351632df2544ba4e";
|
|
|
|
hash = "sha256-cxlZh1x8ycpZIwSeOwqB6BtwYaMoWtSPaeiyW41epdk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ openssh GitRepository URI XMLMini ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
touch Makefile.PL
|
|
|
|
rm -f Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib $out/bin
|
|
|
|
cp -r . $out/lib/ham
|
|
|
|
|
|
|
|
makeWrapper $out/lib/ham/ham $out/bin/ham --argv0 ham \
|
|
|
|
--prefix PATH : ${openssh}/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A tool to manage big projects consisting of multiple loosely-coupled git repositories";
|
|
|
|
homepage = "https://github.com/kernkonzept/ham";
|
2023-02-09 11:40:11 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ aw ];
|
2022-06-26 10:26:21 +00:00
|
|
|
mainProgram = "ham";
|
2023-02-09 11:40:11 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|