dream2nix/overrides/rust/default.nix
2022-07-16 13:57:01 +00:00

31 lines
723 B
Nix

{
lib,
pkgs,
...
}: let
l = lib // builtins;
addDeps = bi: nbi: {
overrideAttrs = old: {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ nbi;
buildInputs = (old.buildInputs or []) ++ bi;
};
};
in rec {
zellij-deps = {
add-deps = with pkgs; addDeps [openssl] [pkg-config];
};
zellij = {
inherit-deps = zellij-deps.add-deps;
add-deps = with pkgs; addDeps [zlib] [];
};
eureka-deps = {
add-deps = with pkgs; addDeps [openssl] [pkg-config];
};
eureka = {
inherit-deps = eureka-deps.add-deps;
add-deps = with pkgs; addDeps [zlib] [];
# the tests seem to be undeterministic if ran in parallel
disable-parallel-tests.RUST_TEST_THREADS = 1;
};
}