nixpkgs/pkgs/by-name/ap/apt-mirror/package.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

46 lines
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=";
};
nativeBuildInputs = [ makeWrapper ];
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;
};
})