mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
5c5aaaaaae
https://discourse.nixos.org/t/nca-jonringer-joint-announcement/48231 https://web.archive.org/web/20240701165505/https://discourse.nixos.org/t/nca-jonringer-joint-announcement/48231 we had little faith in the NCA process, but this is going deep, *deep* into the territory of wilfully insulting all those had placed even a modicum of trust in that process. have you fucking nazi bar.
68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{ fetchFromGitHub
|
|
, rustPlatform
|
|
, pkg-config
|
|
, python3
|
|
, 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.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozilla-services";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8MxGrE8BaqSN0vPORKupKQuqHiv2vcqQhTX+SnmWFoM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
makeBinaryWrapper
|
|
pkg-config
|
|
python3
|
|
];
|
|
|
|
buildInputs = [
|
|
libmysqlclient
|
|
];
|
|
|
|
preFixup = ''
|
|
wrapProgram $out/bin/syncserver \
|
|
--prefix PATH : ${lib.makeBinPath [ pyFxADeps ]}
|
|
'';
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"deadpool-0.7.0" = "sha256-yQwn45EuzmPBwuT+iLJ/LLWAkBkW2vF+GLswdbpFVAY=";
|
|
};
|
|
};
|
|
|
|
# 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";
|
|
changelog = "https://github.com/mozilla-services/syncstorage-rs/releases/tag/${version}";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = with lib.maintainers; [ ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "syncserver";
|
|
};
|
|
}
|