Merge pull request #289533 from D3vil0p3r/patch-24

magicrescue: init at 1.1.10-unstable-2021-09-12

authored by a-n-n-a-l-e-e and committed by GitHub acdc68ae 268690ff

+41
+41
pkgs/by-name/ma/magicrescue/package.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , gdbm # ndbm.h for dupemap binary 6 + , perl 7 + }: 8 + 9 + stdenv.mkDerivation { 10 + pname = "magicrescue"; 11 + version = "1.1.10-unstable-2021-09-12"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "jbj"; 15 + repo = "magicrescue"; 16 + rev = "d9a57931d437674009bfd2f98451b3d71058eade"; 17 + hash = "sha256-jVBzsa39TQjeDZ4zuXn3UA+4WectjNRwPNb1AkLuIbg="; 18 + }; 19 + 20 + patches = [ 21 + # Add PERL as processor for file. 22 + (fetchpatch { 23 + url = "https://salsa.debian.org/pkg-security-team/magicrescue/-/raw/6331d088a159ae21ad4ab5f18b9bf892ebe18ce3/debian/patches/020_add-Perl-preprocessor.patch"; 24 + hash = "sha256-XX3Rlv/qKB2y/csuaPiliv4cu9KKHNpG/E88VSVP0sg="; 25 + }) 26 + ]; 27 + 28 + buildInputs = [ 29 + gdbm 30 + perl 31 + ]; 32 + 33 + meta = with lib; { 34 + description = "Find and recover deleted files on block devices"; 35 + mainProgram = "magicrescue"; 36 + homepage = "https://github.com/jbj/magicrescue"; 37 + maintainers = with maintainers; [ d3vil0p3r ]; 38 + platforms = platforms.unix; 39 + license = licenses.gpl2Plus; 40 + }; 41 + }