mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
755b915a15
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/'
46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{ 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 = "Undelete tool for the XFS filesystem";
|
|
mainProgram = "xfs_undelete";
|
|
homepage = "https://github.com/ianka/xfs_undelete";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.deepfire ];
|
|
};
|
|
}
|