nixpkgs/pkgs/by-name/my/myrescue/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
967 B
Nix
Raw Normal View History

2024-02-17 15:28:23 +01:00
{ lib
, stdenv
, fetchurl
, installShellFiles
}:
stdenv.mkDerivation (finalAttrs: {
pname = "myrescue";
version = "0.9.8";
src = fetchurl {
url = "mirror://sourceforge/project/myrescue/myrescue/myrescue-${finalAttrs.version}/myrescue-${finalAttrs.version}.tar.gz";
hash = "sha256-tO9gkDpEtmySatzV2Ktw3eq5SybCUGAUmKXiSxnkwdc=";
};
nativeBuildInputs = [ installShellFiles ];
sourceRoot = "./src";
patches = [
./0001-darwin-build-fixes.patch
];
installPhase = ''
runHook preInstall
install -Dm755 myrescue myrescue-bitmap2ppm myrescue-stat -t $out/bin
2024-02-17 15:28:23 +01:00
installManPage ../doc/myrescue.1
runHook postInstall
'';
meta = with lib; {
description = "Hard disk recovery tool that reads undamaged regions first";
mainProgram = "myrescue";
homepage = "https://myrescue.sourceforge.net";
maintainers = with maintainers; [ d3vil0p3r ];
platforms = platforms.unix;
license = licenses.gpl2Plus;
};
})