diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-05-01T21·35+0200 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2018-05-01T22·33+0200 |
commit | 06f21643ddc84fff0b2e75b0ec23351aa1484fed (patch) | |
tree | b21c5bfc269e188dc85d14a56837d6188eef8bd5 /default.nix | |
parent | c07b1be3be516454afd77f00ab4c685a4b80349f (diff) |
docs(build): Document manual changes to Carnix expression
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/default.nix b/default.nix index e907c05967f0..b9197cbb79ec 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1,23 @@ -# Generated by carnix 0.6.7: carnix --standalone -o default.nix Cargo.lock +# Most of this file was generated using `carnix`, however some fixes +# have been applied manually. When upgrading dependencies, care must +# be taken to not break those fixes: +# +# 1. Carnix derivations break if a crate's features start with a +# number, which is the case for several of Diesel's features. Those +# have had quotes added around them to fix the issue. +# +# 2. The last line of the derivation has been modified to return the +# derivation for Converse itself, rather than an attribute set of +# all crate derivations. +# +# 3. To fix an issue building Comrak, the Markdown parser, the +# derivation attributes have been overridden to provide a "dummy" +# environment variable that Comrak's binary attempts to read during +# the build. +# Unfortunately Carnix can not currently be configured to not build +# the binary of a dependency (even if the relevant feature is +# disabled), so this workaround is required. + { pkgs ? import <nixpkgs> {} }: with pkgs; let kernel = buildPlatform.parsed.kernel.name; |