mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-25 15:33:20 +03:00
34 lines
814 B
Nix
34 lines
814 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;
|
|
};
|
|
linemd = {
|
|
fix-tests.overrideAttrs = old: {cargoTestFlags = "--features svg";};
|
|
};
|
|
}
|