···
stdenv.mkDerivation rec {
···
nativeBuildInputs = [ unzip ];
22
-
./00-chntpw-build-arch-autodetect.patch
23
-
./01-chntpw-install-target.patch
24
-
# Import various bug fixes from debian
26
-
url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/04_get_abs_path";
27
-
sha256 = "17h0gaczqd5b792481synr1ny72frwslb779lm417pyrz6kh9q8n";
30
-
url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/06_correct_test_open_syscall";
31
-
sha256 = "00lg83bimbki988n71w54mmhjp9529r0ngm40d7fdmnc2dlpj3hd";
34
-
url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/07_detect_failure_to_write_key";
35
-
sha256 = "0pk6xnprh2pqyx4n4lw3836z6fqsw3mclkzppl5rhjaahriwxw4l";
38
-
url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/08_no_deref_null";
39
-
sha256 = "1g7pfmjaj0c2sm64s3api2kglj7jbgddjjd3r4drw6phwdkah0zs";
42
-
url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/09_improve_robustness";
43
-
sha256 = "1nszkdy01ixnain7cwdmfbhjngphw1300ifagc1wgl9wvghzviaa";
46
-
url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/11_improve_documentation";
47
-
sha256 = "0yql6hj72q7cq69rrspsjkpiipdhcwb0b9w5j8nhq40cnx9mgqgg";
50
-
url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/12_readonly_filesystem";
51
-
sha256 = "1kxcy7f2pl6fqgmjg8bnl3pl5wgiw5xnbyx12arinmqkkggp4fa4";
54
-
url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/13_write_to_hive";
55
-
sha256 = "1638lcyxjkrkmbr3n28byixny0qrxvkciw1xd97x48mj6bnwqrkv";
58
-
url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/14_improve_description";
59
-
sha256 = "11y5kc4dh4zv24nkb0jw2zwlifx6nzsd4jbizn63l6dbpqgb25rs";
62
-
url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/17_hexdump-pointer-type.patch";
63
-
sha256 = "ir9LFl8FJq141OwF5SbyVMtjQ1kTMH1NXlHl0XZq7m8=";
23
+
fetchChntpwDebianPatch =
32
+
debianRevision = "1.2";
36
+
./00-chntpw-build-arch-autodetect.patch
37
+
./01-chntpw-install-target.patch
38
+
# Import various bug fixes from debian
39
+
(fetchChntpwDebianPatch {
40
+
patch = "04_get_abs_path";
41
+
hash = "sha256-FuEEp/nZ3xNIpemcRTXPThxvQ7ZeB0REOqs0/Jl6AJ4=";
43
+
(fetchChntpwDebianPatch {
44
+
patch = "06_correct_test_open_syscall";
45
+
hash = "sha256-DQ55aRPM1uZOA6Q+C3ISJV0JayWFh2MRSnGuGtdAjwI=";
47
+
(fetchChntpwDebianPatch {
48
+
patch = "07_detect_failure_to_write_key";
49
+
hash = "sha256-lPDOY4ZKSZgLvfdPyurgGjvzzUCDU2JJ9/gKmK/tZl4=";
51
+
(fetchChntpwDebianPatch {
52
+
patch = "08_no_deref_null";
53
+
hash = "sha256-+gOoZuPwGp4byaNJ2dpb8kj6pohXDU1M1YIBqWR197w=";
55
+
(fetchChntpwDebianPatch {
56
+
patch = "09_improve_robustness";
57
+
hash = "sha256-SsX94ds80ccDe8pFAEbg8D4r4XK1cXZsVLbHAHybX9s=";
59
+
(fetchChntpwDebianPatch {
60
+
patch = "11_improve_documentation";
61
+
hash = "sha256-7+FXU7cMEAwtkoWnBRZnsN0Y75T66pyTwexgcSQ0FHs=";
63
+
(fetchChntpwDebianPatch {
64
+
patch = "12_readonly_filesystem";
65
+
hash = "sha256-RDly35sTVxuzEqH7ZXvh8fFC76B2oSfrw87QK9zxrM8=";
67
+
(fetchChntpwDebianPatch {
68
+
patch = "13_write_to_hive";
69
+
hash = "sha256-e2bM7TKyItJPaj3wyObuGQNve/QLCTvyqjNP2T2jaJg=";
71
+
(fetchChntpwDebianPatch {
72
+
patch = "14_improve_description";
73
+
hash = "sha256-OhexHr6rGTqM/XFJ0vS3prtI+RdcgjUtEfsT2AibxYc=";
75
+
(fetchChntpwDebianPatch {
76
+
patch = "17_hexdump-pointer-type.patch";
77
+
hash = "sha256-ir9LFl8FJq141OwF5SbyVMtjQ1kTMH1NXlHl0XZq7m8=";