42 lines
858 B
Nix
42 lines
858 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
openssl,
|
|
pkg-config,
|
|
cacert,
|
|
...
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "korrosync";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "szaffarano";
|
|
repo = "korrosync";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-ubGOQ6JM9wo5428Yf1F1K+nllG9EDQBrBx4yr6PMPG0=";
|
|
};
|
|
|
|
buildInputs = [
|
|
openssl
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
#cargoHash = "sha256-3oMPREUWwKNEeaf8FdWHdjPMLU5xMSMzxKrmrhU+iko=";
|
|
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";
|
|
};
|
|
})
|