1{ testers, fetchpatch, ... }:
2
3let
4 isFetchpatch2 = fetchpatch.version == 2;
5in
6
7{
8 simple = testers.invalidateFetcherByDrvHash fetchpatch {
9 url = "https://github.com/facebook/zstd/pull/2724/commits/e1f85dbca3a0ed5ef06c8396912a0914db8dea6a.patch";
10 sha256 =
11 if isFetchpatch2 then
12 "sha256-w4yU0wt64d0WkuBQPeGf8vn5TH6qSBJvNIgka9QK+/Q="
13 else
14 "sha256-PuYAqnJWAE+L9bsroOnnBGJhERW8LHrGSLtIEkKU9vg=";
15 };
16
17 relative = testers.invalidateFetcherByDrvHash fetchpatch {
18 url = "https://github.com/boostorg/math/commit/7d482f6ebc356e6ec455ccb5f51a23971bf6ce5b.patch";
19 relative = "include";
20 sha256 =
21 if isFetchpatch2 then
22 "sha256-1TtmuKeNIl/Yp+sfzBMR8Ue78tPIgjqGgjasa5IN52o="
23 else
24 "sha256-KlmIbixcds6GyKYt1fx5BxDIrU7msrgDdYo9Va/KJR4=";
25 };
26
27 full = testers.invalidateFetcherByDrvHash fetchpatch {
28 url = "https://github.com/boostorg/math/commit/7d482f6ebc356e6ec455ccb5f51a23971bf6ce5b.patch";
29 relative = "test";
30 stripLen = 1;
31 extraPrefix = "foo/bar/";
32 excludes = [ "foo/bar/bernoulli_no_atomic_mp.cpp" ];
33 revert = true;
34 sha256 =
35 if isFetchpatch2 then
36 "sha256-+UKmEbr2rIAweCav/hR/7d4ZrYV84ht/domTrHtm8sM="
37 else
38 "sha256-+UKmEbr2rIAweCav/hR/7d4ZrYV84ht/domTrHtm8sM=";
39 };
40
41 decode = testers.invalidateFetcherByDrvHash fetchpatch {
42 name = "gcc.patch";
43 url = "https://chromium.googlesource.com/aosp/platform/external/libchrome/+/f37ae3b1a873d74182a2ac31d96742ead9c1f523^!?format=TEXT";
44 decode = "base64 -d";
45 sha256 =
46 if isFetchpatch2 then
47 "sha256-oMvPlmzE51ArI+EvFxONXkqmNee39106/O1ikG0Bdso="
48 else
49 "sha256-SJHk8XrutqAyoIdORlhCpBCN626P+uzed7mjKz5eQYY=";
50 };
51
52 fileWithSpace = testers.invalidateFetcherByDrvHash fetchpatch {
53 url = "https://github.com/jfly/annoying-filenames/commit/1e86a219f5fc9c4137b409bc9c38036f3922724b.patch";
54 sha256 =
55 if isFetchpatch2 then
56 "sha256-RB6pjigoXtzHILkGFXYd3Lz2aM9DvO0NRmLdey1N6gg="
57 else
58 "sha256-aptUvVojqIIIVNuHqkl+C+dZBGFfs+1MUd0FNV+4j4E=";
59 };
60
61 fileWithApostrophe = testers.invalidateFetcherByDrvHash fetchpatch {
62 url = "https://github.com/jfly/annoying-filenames/commit/8b6d8f8d7094ce646523b3369cfdf5030289c66c.patch";
63 sha256 =
64 if isFetchpatch2 then
65 "sha256-CrQFmVvLEvWpo2ucVrWyLb5qk2GVOxyUbFN3hp9sV68="
66 else
67 "sha256-CrQFmVvLEvWpo2ucVrWyLb5qk2GVOxyUbFN3hp9sV68=";
68 };
69}