diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-23T19·52+0200 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2018-04-23T20·09+0200 |
commit | 9adacf86969c0642a6448c275a785445d44b9b0a (patch) | |
tree | a7887c3251db556c1f0c8dcc39cab17799683da6 /default.nix | |
parent | 0f6f5aeb4c71835499eae39b921b4d45fac765d8 (diff) |
fix(build): Add explicit pulldown-cmark dependency
There is some weird dependency interaction between pulldown-cmark and getopts which causes builds to fail with a message about unstable features if getopts is not explicitly depended on as a dependency of a dependency (yeah, huh?)
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/default.nix b/default.nix index 33794d1d573a..903ddb523e13 100644 --- a/default.nix +++ b/default.nix @@ -1,6 +1,7 @@ -# Generated by carnix 0.6.7: carnix --standalone -o carnix.nix Cargo.lock -with import <nixpkgs> {}; -let kernel = buildPlatform.parsed.kernel.name; +# Generated by carnix 0.6.7: carnix --standalone -o default.nix Cargo.lock +{ pkgs ? import <nixpkgs> {} }: + +with pkgs; let kernel = buildPlatform.parsed.kernel.name; abi = buildPlatform.parsed.abi.name; include = includedFiles: src: # The comments assume the `include` field of the Cargo.toml like: @@ -559,6 +560,13 @@ rec { sha256 = "07a5i47r8achc6gxsba3ga17h9gnh4b9a2cak8vjg4hx62aajkr4"; inherit dependencies buildDependencies features; }; + getopts_0_2_17_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "getopts"; + version = "0.2.17"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1rifkxn7njr2w1dsa29hrm26ywgcg8gv1ms00g3vs5mjiabxk0jv"; + inherit dependencies buildDependencies features; + }; glob_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "glob"; version = "0.2.11"; @@ -2342,6 +2350,7 @@ rec { }) [ clap_2_31_2_features entities_1_0_1_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_10_features twoway_0_1_8_features typed_arena_1_3_0_features unicode_categories_0_1_1_features ]; converse_0_1_0 = { features?(converse_0_1_0_features {}) }: converse_0_1_0_ { dependencies = mapFeatures features ([ actix_0_5_6 actix_web_0_5_4 chrono_0_4_2 comrak_0_2_9 diesel_1_2_2 env_logger_0_5_9 failure_0_1_1 futures_0_1_21 hyper_0_11_25 log_0_4_1 md5_0_3_7 r2d2_0_8_2 rand_0_4_2 reqwest_0_8_5 serde_1_0_43 serde_derive_1_0_43 serde_json_1_0_16 tera_0_11_6 tokio_0_1_5 tokio_timer_0_2_1 url_1_7_0 url_serde_0_2_0 ]); + buildDependencies = mapFeatures features ([ pulldown_cmark_0_1_2 ]); }; converse_0_1_0_features = f: updateFeatures f (rec { actix_0_5_6.default = true; @@ -2360,6 +2369,7 @@ rec { hyper_0_11_25.default = true; log_0_4_1.default = true; md5_0_3_7.default = true; + pulldown_cmark_0_1_2.default = true; r2d2_0_8_2.default = true; rand_0_4_2.default = true; reqwest_0_8_5.default = true; @@ -2371,7 +2381,7 @@ rec { tokio_timer_0_2_1.default = true; url_1_7_0.default = true; url_serde_0_2_0.default = true; - }) [ actix_0_5_6_features actix_web_0_5_4_features chrono_0_4_2_features comrak_0_2_9_features diesel_1_2_2_features env_logger_0_5_9_features failure_0_1_1_features futures_0_1_21_features hyper_0_11_25_features log_0_4_1_features md5_0_3_7_features r2d2_0_8_2_features rand_0_4_2_features reqwest_0_8_5_features serde_1_0_43_features serde_derive_1_0_43_features serde_json_1_0_16_features tera_0_11_6_features tokio_0_1_5_features tokio_timer_0_2_1_features url_1_7_0_features url_serde_0_2_0_features ]; + }) [ actix_0_5_6_features actix_web_0_5_4_features chrono_0_4_2_features comrak_0_2_9_features diesel_1_2_2_features env_logger_0_5_9_features failure_0_1_1_features futures_0_1_21_features hyper_0_11_25_features log_0_4_1_features md5_0_3_7_features r2d2_0_8_2_features rand_0_4_2_features reqwest_0_8_5_features serde_1_0_43_features serde_derive_1_0_43_features serde_json_1_0_16_features tera_0_11_6_features tokio_0_1_5_features tokio_timer_0_2_1_features url_1_7_0_features url_serde_0_2_0_features pulldown_cmark_0_1_2_features ]; cookie_0_10_1 = { features?(cookie_0_10_1_features {}) }: cookie_0_10_1_ { dependencies = mapFeatures features ([ time_0_1_39 ] ++ (if features.cookie_0_10_1.base64 or false then [ base64_0_6_0 ] else []) @@ -3004,6 +3014,10 @@ rec { (f.gcc_0_3_54.parallel or false) || (gcc_0_3_54.parallel or false); }) []; + getopts_0_2_17 = { features?(getopts_0_2_17_features {}) }: getopts_0_2_17_ {}; + getopts_0_2_17_features = f: updateFeatures f (rec { + getopts_0_2_17.default = (f.getopts_0_2_17.default or true); + }) []; glob_0_2_11 = { features?(glob_0_2_11_features {}) }: glob_0_2_11_ {}; glob_0_2_11_features = f: updateFeatures f (rec { glob_0_2_11.default = (f.glob_0_2_11.default or true); @@ -3764,17 +3778,19 @@ rec { unicode_xid_0_1_0.default = true; }) [ unicode_xid_0_1_0_features ]; pulldown_cmark_0_1_2 = { features?(pulldown_cmark_0_1_2_features {}) }: pulldown_cmark_0_1_2_ { - dependencies = mapFeatures features ([ bitflags_0_9_1 ]); + dependencies = mapFeatures features ([ bitflags_0_9_1 ] + ++ (if features.pulldown_cmark_0_1_2.getopts or false then [ getopts_0_2_17 ] else [])); features = mkFeatures (features.pulldown_cmark_0_1_2 or {}); }; pulldown_cmark_0_1_2_features = f: updateFeatures f (rec { bitflags_0_9_1.default = true; + getopts_0_2_17.default = true; pulldown_cmark_0_1_2.default = (f.pulldown_cmark_0_1_2.default or true); pulldown_cmark_0_1_2.getopts = (f.pulldown_cmark_0_1_2.getopts or false) || (f.pulldown_cmark_0_1_2.default or false) || (pulldown_cmark_0_1_2.default or false); - }) [ bitflags_0_9_1_features ]; + }) [ bitflags_0_9_1_features getopts_0_2_17_features ]; quick_error_1_2_1 = { features?(quick_error_1_2_1_features {}) }: quick_error_1_2_1_ {}; quick_error_1_2_1_features = f: updateFeatures f (rec { quick_error_1_2_1.default = (f.quick_error_1_2_1.default or true); @@ -5156,4 +5172,4 @@ rec { winapi_build_0_1_1.default = true; ws2_32_sys_0_2_1.default = (f.ws2_32_sys_0_2_1.default or true); }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; -}.converse_0_1_0 {} +} |