You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.
This issue was discovered in combination with the comrak issues
described in #2.
When building the comrak binary crate, the following line of code is
run (from here):
.about(crate_description!())
The crate_description! macro expands to a call to env!("CARGO_PKG_DESCRIPTION"), which attempts to read the CARGO_PKG_DESCRIPTION variable at compile-time.
However, this environment variable is not present in Carnix-builds
which will cause the build to error at that point.
In several of my projects I've applied a workaround for this that
uses overrideAttrs to "fake" the environment variable, as issue #2
meant that I could not figure out how to stop the binary from being
built:
comrak_0_2_9={features?(comrak_0_2_9_features{})}: (comrak_0_2_9_{# bla bla bla #}).overrideAttrs(oldAttrs: rec{CARGO_PKG_DESCRIPTION="dummy";});
There may be other such environment variables that crates attempt to
use, but I haven't looked deeper into that yet.
The text was updated successfully, but these errors were encountered:
Issue description
This issue was discovered in combination with the
comrak
issuesdescribed in #2.
When building the
comrak
binary crate, the following line of code isrun (from here):
The crate_description! macro expands to a call to
env!("CARGO_PKG_DESCRIPTION")
, which attempts to read theCARGO_PKG_DESCRIPTION
variable at compile-time.However, this environment variable is not present in Carnix-builds
which will cause the build to error at that point.
In several of my projects I've applied a workaround for this that
uses
overrideAttrs
to "fake" the environment variable, as issue #2meant that I could not figure out how to stop the binary from being
built:
There may be other such environment variables that crates attempt to
use, but I haven't looked deeper into that yet.
The text was updated successfully, but these errors were encountered: