nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 2.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 fetchpatch, 6 e2fsprogs, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "ext3grep"; 11 version = "0.10.2"; 12 13 src = fetchurl { 14 url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ext3grep/ext3grep-${finalAttrs.version}.tar.gz"; 15 hash = "sha256-WG8+k50v/XgvbwBrgaPfLcR3xtoD8h7biGDFxPcZjz4="; 16 }; 17 18 nativeBuildInputs = [ e2fsprogs ]; 19 20 patches = [ 21 (fetchpatch { 22 url = "https://salsa.debian.org/pkg-security-team/ext3grep/-/raw/6150141b945dd12240629c07ada0a033b275baeb/debian/patches/001_fix-ftbfs-e2fsprogs_1.42-WIP-702.diff"; 23 hash = "sha256-27M+o3vw4eGCFpdqVLXX6b73a8v29yuKphMo8K0xJ3U="; 24 }) 25 (fetchpatch { 26 url = "https://salsa.debian.org/pkg-security-team/ext3grep/-/raw/7c4bfb4c19eabaa11e6bf435289bfcd6e6847a9c/debian/patches/002_remove_i_dir_acl.diff"; 27 hash = "sha256-2bdlJ+zlsd7zX3ztV7NOTwSmEZf0N1BM8qJ/5avKX+M="; 28 }) 29 (fetchpatch { 30 url = "https://salsa.debian.org/pkg-security-team/ext3grep/-/raw/58d63611bb8dfe5c4eacd568e79914f4f0cb2a0f/debian/patches/005_fix-FTBFS-dh-11.patch"; 31 hash = "sha256-GfiSMRxbGz1gDMfAjo+FRmNIRK1zq96TVkLBO03pzbI="; 32 }) 33 (fetchpatch { 34 url = "https://salsa.debian.org/pkg-security-team/ext3grep/-/raw/8bb5322ced9b099d2af73e77d4a84b6e5b1a9f7f/debian/patches/010_fix-spellings.patch"; 35 hash = "sha256-YHUInewf634HaRFUW9djtRZqg7Wdqh/rjp0pbJuOT2M="; 36 }) 37 (fetchpatch { 38 url = "https://salsa.debian.org/pkg-security-team/ext3grep/-/raw/662e314abca7d466add8015fc3d2cd49653cffcf/debian/patches/015_fix-clang-build.patch"; 39 hash = "sha256-GctPFpBxdZYi5l2dtFTrFx4cTmDXV8BARvpwK+oxMdc="; 40 }) 41 ]; 42 43 meta = { 44 description = "Tool to investigate an ext3 file system for deleted content and possibly recover it"; 45 mainProgram = "ext3grep"; 46 homepage = "https://code.google.com/archive/p/ext3grep/"; 47 maintainers = [ ]; 48 platforms = lib.platforms.linux; 49 license = lib.licenses.gpl2Plus; 50 }; 51})