lychee/default.nix

32 lines
638 B
Nix
Raw Normal View History

2024-12-19 17:22:01 +00:00
{ pkgs }:
2024-12-19 14:29:57 +00:00
let
2024-12-19 16:35:07 +00:00
in
{
app = pkgs.rustPlatform.buildRustPackage {
pname = "lychee";
2024-12-19 14:29:57 +00:00
version = "0.17.0";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs =
[ pkgs.openssl ]
++ pkgs.lib.optionals pkgs.stdenv.hostPlatform.isDarwin [
pkgs.Security
pkgs.SystemConfiguration
];
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
RUST_BACKTRACE = 1;
checkFlags = [
"--skip=src/lib.rs"
"--skip=client::tests"
"--skip=collector::tests::test_url_without_extension_is_html"
];
};
}