Merge pull request #281881 from deepfire/0-gh-xfs-undelete

xfs_undelete:  new at 2023-04-12
This commit is contained in:
h7x4 2024-01-19 19:57:57 +01:00 committed by GitHub
commit 4dca2596bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,44 @@
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, coreutils
, tcl-8_6
, tcllib
, installShellFiles
}:
stdenv.mkDerivation {
pname = "xfs_undelete";
version = "unstable-2023-04-12";
src = fetchFromGitHub {
repo = "xfs_undelete";
owner = "ianka";
rev = "9e2f7abf0d3a466328e335d251c567ce4194e473";
sha256 = "0n1718bmr2lfpwx57hajancda51fyrgyk9rbybbadvd8gypvzmhh";
};
buildInputs = [ tcl-8_6 tcllib coreutils ];
nativeBuildInputs = [ makeWrapper tcl-8_6.tclPackageHook installShellFiles ];
tclWrapperArgs = [ "--prefix" "PATH" ":" (lib.makeBinPath [ tcl-8_6 ]) ];
installPhase = ''
runHook preInstall
install -Dm555 xfs_undelete -t $out/bin
mv xfs_undelete.man xfs_undelete.8
installManPage xfs_undelete.8
runHook postInstall
'';
meta = with lib; {
description = "An undelete tool for the XFS filesystem";
homepage = "https://github.com/ianka/xfs_undelete";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ maintainers.deepfire ];
};
}