47 lines
966 B
Nix
47 lines
966 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
openssl,
|
|
pkg-config,
|
|
cacert,
|
|
...
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "korrosync";
|
|
version = "0.4.0";
|
|
|
|
# Use patched version until https://github.com/szaffarano/korrosync/pull/131 is merged
|
|
src = fetchFromGitHub {
|
|
owner = "inaltoasinistra";
|
|
repo = "korrosync";
|
|
rev = "df735653b100071ce9303f3b7b71cb235189ba5d";
|
|
hash = "sha256-8Gp5i7pN7gXjGESHNO5h4P1mWXEtR8jAh2Y39Mcur6g=";
|
|
};
|
|
|
|
buildInputs = [
|
|
openssl
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
checkFlags = [
|
|
"--skip"
|
|
"cli_should_start_server"
|
|
];
|
|
|
|
cargoLock.lockFile = "${finalAttrs.src}/Cargo.lock";
|
|
|
|
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
NIX_SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
|
|
meta = {
|
|
description = "KOReader Sync Server";
|
|
license = lib.licenses.mit;
|
|
homepage = "https://github.com/szaffarano/korrosync";
|
|
};
|
|
})
|