1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 09:53:17 +00:00
nixpkgs/pkgs/tools/backup/zfs-prune-snapshots/default.nix

31 lines
835 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, go-md2man }:
2020-08-10 08:50:54 +01:00
stdenv.mkDerivation rec {
version = "1.1.0";
pname = "zfs-prune-snapshots";
src = fetchFromGitHub {
owner = "bahamas10";
repo = pname;
rev = "v${version}";
sha256 = "09dz9v6m47dxfvfncz0k926dqfhagm87kd33dcw66cbw15ac3spx";
};
nativeBuildInputs = [ go-md2man ];
makeTargets = [ "man" ];
installPhase = ''
install -m 755 -D zfs-prune-snapshots $out/bin/zfs-prune-snapshots
install -m 644 -D man/zfs-prune-snapshots.1 $out/share/man/man1/zfs-prune-snapshots.1
'';
meta = with lib; {
2020-08-10 08:50:54 +01:00
description = "Remove snapshots from one or more zpools that match given criteria";
homepage = "https://github.com/bahamas10/zfs-prune-snapshots";
license = licenses.mit;
maintainers = [ maintainers.ymarkus ];
platforms = platforms.all;
};
}