1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage (finalAttrs: {
9 pname = "uutils-diffutils";
10 version = "0.4.2";
11
12 src = fetchFromGitHub {
13 owner = "uutils";
14 repo = "diffutils";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-IAgrCkhUC2Tkh+OM1lorpmD0GpsHUauLgU0KcmsvKb4=";
17 };
18
19 cargoHash = "sha256-SiZIp0rJXl0ZqKaxLPtV1nypxSqKXW+NoFLxCVpW4OY=";
20
21 checkFlags = [
22 # called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
23 "--skip=ed_diff::tests::test_permutations"
24 "--skip=ed_diff::tests::test_permutations_reverse"
25 "--skip=ed_diff::tests::test_permutations_empty_lines"
26 ];
27
28 passthru = {
29 updateScript = nix-update-script { };
30 };
31
32 meta = {
33 changelog = "https://github.com/uutils/diffutils/releases/tag/${finalAttrs.version}";
34 description = "Drop-in replacement of diffutils in Rust";
35 homepage = "https://github.com/uutils/diffutils";
36 license = lib.licenses.mit;
37 mainProgram = "diffutils";
38 maintainers = with lib.maintainers; [ drupol ];
39 platforms = lib.platforms.unix;
40 };
41})