Files
nixpkgs/pkgs/by-name/ha/ham/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.1 KiB
Nix

{
lib,
perlPackages,
fetchFromGitHub,
makeWrapper,
openssh,
}:
perlPackages.buildPerlPackage {
pname = "ham-unstable";
version = "2025-02-25";
src = fetchFromGitHub {
owner = "kernkonzept";
repo = "ham";
rev = "81b6f05fd91865c7d42b94a683388504489356dc";
hash = "sha256-a1JaUD/jrF7Yf+vyUoKQFjojxenmsCVw3Uo8u7RjPiQ=";
};
outputs = [ "out" ];
nativeBuildInputs = [
makeWrapper
];
buildInputs = with perlPackages; [
GitRepository
URI
XMLParser
];
propagatedBuildInputs = [
openssh
];
preConfigure = ''
rm -f Makefile
touch Makefile.PL
patchShebangs .
'';
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
'';
meta = with lib; {
description = "Tool to manage big projects consisting of multiple loosely-coupled git repositories";
homepage = "https://github.com/kernkonzept/ham";
license = licenses.bsd2;
maintainers = with maintainers; [ aw ];
mainProgram = "ham";
platforms = platforms.unix;
};
}