10 mimallocPatch = fetchpatch {
11 # fixes compilation error on x86_64-darwin
12 # remove after update to libmimalloc-sys >= 0.1.29
13 # (fixed in mimalloc >= 1.7.6 which is included with libmimalloc-sys >= 0.1.29)
14 url = "https://github.com/microsoft/mimalloc/commit/40e0507a5959ee218f308d33aec212c3ebeef3bb.patch";
15 hash = "sha256-DK0LqsVXXiEVQSQCxZ5jyZMg0UJJx9a/WxzCroYSHZc=";
18 rustPlatform.buildRustPackage rec {
22 src = fetchFromGitHub {
26 hash = "sha256-hhkcujMuirBTIwUP3RMZ+F76T1TLcjMqa5l328xrwRg=";
30 lockFile = ./Cargo.lock;
35 "--skip=options::tests::test_detect_display_width"
39 patch -d $cargoDepsCopy/libmimalloc-sys-0.1.24/c_src/mimalloc \
40 -p1 < ${mimallocPatch}
43 passthru.tests.version = testers.testVersion { package = difftastic; };
46 description = "Syntax-aware diff";
47 homepage = "https://github.com/Wilfred/difftastic";
48 changelog = "https://github.com/Wilfred/difftastic/blob/${version}/CHANGELOG.md";
49 license = licenses.mit;
50 maintainers = with maintainers; [ ethancedwards8 figsoda matthiasbeyer ];
51 mainProgram = "difft";