syncstorage-rs: init at 0.11.0
This commit is contained in:
parent
97bdf4893d
commit
fd184d63e9
63
pkgs/servers/syncstorage-rs/default.nix
Normal file
63
pkgs/servers/syncstorage-rs/default.nix
Normal file
@ -0,0 +1,63 @@
|
||||
{ fetchFromGitHub
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, python3
|
||||
, openssl
|
||||
, cmake
|
||||
, libmysqlclient
|
||||
, makeBinaryWrapper
|
||||
, lib
|
||||
}:
|
||||
|
||||
let
|
||||
pyFxADeps = python3.withPackages (p: [
|
||||
p.setuptools # imports pkg_resources
|
||||
# remainder taken from requirements.txt
|
||||
p.pyfxa
|
||||
p.tokenlib
|
||||
p.cryptography
|
||||
]);
|
||||
in
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "syncstorage-rs";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mozilla-services";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-VfIpjpBS7LXe32fxIFp7xmbm40VwxUdHIEm5PnMpd4s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
makeBinaryWrapper
|
||||
pkg-config
|
||||
python3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libmysqlclient
|
||||
openssl
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
wrapProgram $out/bin/syncstorage \
|
||||
--prefix PATH : ${lib.makeBinPath [ pyFxADeps ]}
|
||||
'';
|
||||
|
||||
cargoSha256 = "sha256-JXxArKA/2SIYJvjNA1yZHR9xDKt3N2U7HVMP/6M3BxE=";
|
||||
|
||||
buildFeatures = [ "grpcio/openssl" ];
|
||||
|
||||
# almost all tests need a DB to test against
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Mozilla Sync Storage built with Rust";
|
||||
homepage = "https://github.com/mozilla-services/syncstorage-rs";
|
||||
license = lib.licenses.mpl20;
|
||||
maintainers = with lib.maintainers; [ pennae ];
|
||||
};
|
||||
}
|
@ -22153,6 +22153,8 @@ with pkgs;
|
||||
|
||||
sympa = callPackage ../servers/mail/sympa { };
|
||||
|
||||
syncstorage-rs = callPackage ../servers/syncstorage-rs { };
|
||||
|
||||
system-sendmail = lowPrio (callPackage ../servers/mail/system-sendmail { });
|
||||
|
||||
# PulseAudio daemons
|
||||
|
Loading…
Reference in New Issue
Block a user