2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPerlPackage, fetchFromGitHub, makeWrapper, openssh, GitRepository, URI, XMLMini }:
|
|
|
|
|
|
|
|
buildPerlPackage {
|
|
|
|
pname = "ham-unstable";
|
2020-10-16 20:44:37 +00:00
|
|
|
version = "2020-09-09";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kernkonzept";
|
|
|
|
repo = "ham";
|
2020-10-16 20:44:37 +00:00
|
|
|
rev = "ae2a326f2efcdae0fa7c5bf0ba205b580fc91ecc";
|
|
|
|
sha256 = "0m65pav2830y0ivwsy60dc4w457qlc0nqg43lji1kj2g96hmy2bw";
|
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;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A tool to manage big projects consisting of multiple loosely-coupled git repositories";
|
|
|
|
homepage = "https://github.com/kernkonzept/ham";
|
|
|
|
license = "unknown"; # should be gpl2, but not quite sure
|
|
|
|
maintainers = with lib.maintainers; [ aw ];
|
2022-06-26 10:26:21 +00:00
|
|
|
mainProgram = "ham";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|