nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "drat"; 9 version = "0.1.3-unstable-2024-01-07"; 10 11 src = fetchFromGitHub { 12 owner = "jivanpal"; 13 repo = "drat"; 14 rev = "af573b9e067e8b6cbcc4825946e7e636b30c748f"; 15 hash = "sha256-1NmqG73sP25Uqf7DiSPgt7drONOg9ZkrtCS0tYVjSU0="; 16 }; 17 18 # Don't blow up on warnings; it makes upgrading the compiler difficult. 19 postPatch = '' 20 substituteInPlace Makefile --replace-fail "-Werror" "" 21 ''; 22 23 makeFlags = [ 24 "CC=${stdenv.cc.targetPrefix}cc" 25 "LD=${stdenv.cc.targetPrefix}cc" 26 ]; 27 28 installPhase = '' 29 runHook preInstall 30 31 mkdir -p $out/bin 32 install drat $out/bin 33 34 runHook postInstall 35 ''; 36 37 meta = { 38 description = "Utility for performing data recovery and analysis of APFS partitions/containers"; 39 homepage = "https://github.com/jivanpal/drat"; 40 changelog = "https://github.com/jivanpal/drat/blob/main/CHANGELOG.md"; 41 license = lib.licenses.gpl3Only; 42 maintainers = with lib.maintainers; [ philiptaron ]; 43 mainProgram = "drat"; 44 platforms = lib.platforms.all; 45 }; 46})