2018-05-18 21:43:04 +02:00
|
|
|
# This Nix derivation imports the generated Carnix sources and builds
|
|
|
|
# Converse.
|
2018-05-01 23:35:52 +02:00
|
|
|
#
|
2018-05-18 21:43:04 +02:00
|
|
|
# To work around an issue in Carnix ([1] & [2]) the attributes of the
|
|
|
|
# comrak crate have been overridden with a dummy environment variable
|
|
|
|
# to simulate a Cargo-based build. This requires a manual change to
|
|
|
|
# `Cargo.nix` when updating dependencies.
|
2018-05-01 23:35:52 +02:00
|
|
|
#
|
2018-05-18 21:43:04 +02:00
|
|
|
# [1]: https://nest.pijul.com/pmeunier/carnix/discussions/2
|
|
|
|
# [2]: https://nest.pijul.com/pmeunier/carnix/discussions/3
|
2018-04-16 00:24:13 +02:00
|
|
|
|
2018-05-18 21:43:04 +02:00
|
|
|
{ pkgs ? import <nixpkgs> {}}:
|
2018-04-16 00:24:13 +02:00
|
|
|
|
2018-05-18 21:43:04 +02:00
|
|
|
let cargo = pkgs.callPackage ./Cargo.nix {};
|
|
|
|
in cargo.converse {}
|