1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# What the crate set in rust-deps.lock has to build. See rust-deps(1), ROOTS.
#
# A root is either a Cargo workspace (src) of which some packages are built
# with the given features, or a bare list of crates (deps) for code without a
# manifest of its own: the depot's rustSimple tools.
#
# rust-deps reads this with nix-instantiate; default.nix builds the packages
# of a workspace root from the same src.
{ depot }:
let
pkgs = depot.third_party.nixpkgs;
in
{
# The crates the depot's own Rust code (nix/writers' rustSimple and the
# buildRustCrate calls in users/Profpatsch) takes from the set, as
# depot.third_party.rust-crates.<name>.
depot = {
deps = {
libc = { version = "0.2"; };
errno = { version = "0.3"; };
nom = { version = "8"; };
ascii = { version = "1"; };
httparse = { version = "1"; };
mustache = { version = "0.9"; };
};
};
niri = {
src = import ../../users/Profpatsch/nixos-modules/services/niri-src.nix { inherit pkgs; };
packages = [ "niri" ];
# as nixpkgs builds it: everything but the Tracy profiler and dinit
noDefaultFeatures.niri = true;
features.niri = [ "dbus" "systemd" "xdp-gnome-screencast" ];
};
}
|