about summary refs log tree commit diff
path: root/default.nix
blob: 5b8a674809db706077cba6bd61d7c6001b95c8af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This Nix derivation imports the generated Carnix sources and builds
# Converse.
#
# 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.
#
# [1]: https://nest.pijul.com/pmeunier/carnix/discussions/2
# [2]: https://nest.pijul.com/pmeunier/carnix/discussions/3

{ pkgs ? import <nixpkgs> {}}:

let cargo = pkgs.callPackage ./Cargo.nix {};
in cargo.converse {}