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
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
docker,
|
|
coreutils,
|
|
procps,
|
|
gnused,
|
|
findutils,
|
|
gnugrep,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "docker-gc";
|
|
version = "unstable-2015-10-5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "spotify";
|
|
repo = "docker-gc";
|
|
rev = "b0cc52aa3da2e2ac0080794e0be6e674b1f063fc";
|
|
sha256 = "07wf9yn0f771xkm3x12946x5rp83hxjkd70xgfgy35zvj27wskzm";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp docker-gc $out/bin
|
|
chmod +x $out/bin/docker-gc
|
|
wrapProgram $out/bin/docker-gc \
|
|
--prefix PATH : "${
|
|
lib.makeBinPath [
|
|
docker
|
|
coreutils
|
|
procps
|
|
gnused
|
|
findutils
|
|
gnugrep
|
|
]
|
|
}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Docker garbage collection of containers and images";
|
|
mainProgram = "docker-gc";
|
|
license = licenses.asl20;
|
|
homepage = "https://github.com/spotify/docker-gc";
|
|
maintainers = with maintainers; [ offline ];
|
|
platforms = docker.meta.platforms;
|
|
};
|
|
}
|