nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchpatch,
4 stdenv,
5 fetchFromGitHub,
6 cmake,
7 gitUpdater,
8}:
9stdenv.mkDerivation (finalAttrs: {
10 pname = "fatcat";
11 version = "1.1.1";
12
13 src = fetchFromGitHub {
14 owner = "Gregwar";
15 repo = "fatcat";
16 rev = "v${finalAttrs.version}";
17 hash = "sha256-/iGNVP7Bz/UZAR+dFxAKMKM9jm07h0x0F3VGpdxlHdk=";
18 };
19
20 patches = [
21 # cmake: Set minimum required version to 3.5 for CMake 4+
22 (fetchpatch {
23 url = "https://github.com/Gregwar/fatcat/commit/2e3476a84cbe32598d36b5506c21025b3f94eb03.patch";
24 hash = "sha256-e5qGcpdHhbp2mZ7O3vBAJnSW5K2aXEfNVUfK/brx9a8=";
25 })
26 ];
27
28 nativeBuildInputs = [
29 cmake
30 ];
31
32 passthru.updateScript = gitUpdater {
33 rev-prefix = "v";
34 };
35
36 meta = {
37 description = "FAT filesystems explore, extract, repair, and forensic tool";
38 mainProgram = "fatcat";
39 homepage = "https://github.com/Gregwar/fatcat";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ cynerd ];
42 };
43})