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
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
perl,
|
|
wget,
|
|
makeWrapper,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "apt-mirror";
|
|
version = "0.5.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "apt-mirror";
|
|
repo = "apt-mirror";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-GNsyXP/O56Y+8QhoSfMm+ig5lK/K3Cm085jxRt9ZRmI=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
perl # pod2man
|
|
];
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
makeFlags = [
|
|
"DESTDIR=$(out)"
|
|
"PREFIX=''"
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/apt-mirror \
|
|
--prefix PATH : ${lib.makeBinPath [ wget ]}
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Tool that provides the ability to mirror any parts of apt sources";
|
|
homepage = "https://github.com/apt-mirror/apt-mirror";
|
|
changelog = "https://github.com/apt-mirror/apt-mirror/blob/${finalAttrs.src.rev}/CHANGELOG";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ arthsmn ];
|
|
mainProgram = "apt-mirror";
|
|
platforms = platforms.all;
|
|
};
|
|
})
|