crabfit-api: init at unstable-2023-08-02
This commit is contained in:
parent
a8dd632c26
commit
9039bcbe79
3973
pkgs/by-name/cr/crabfit-api/Cargo.lock
generated
Normal file
3973
pkgs/by-name/cr/crabfit-api/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
71
pkgs/by-name/cr/crabfit-api/package.nix
Normal file
71
pkgs/by-name/cr/crabfit-api/package.nix
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
rustPlatform,
|
||||||
|
fetchFromGitHub,
|
||||||
|
fetchpatch,
|
||||||
|
pkg-config,
|
||||||
|
protobuf,
|
||||||
|
openssl,
|
||||||
|
sqlite,
|
||||||
|
stdenv,
|
||||||
|
darwin,
|
||||||
|
adaptor ? "sql",
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage {
|
||||||
|
pname = "crabfit-api";
|
||||||
|
version = "0-unstable-2023-08-02";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "GRA0007";
|
||||||
|
repo = "crab.fit";
|
||||||
|
rev = "628f9eefc300bf1ed3d6cc3323332c2ed9b8a350";
|
||||||
|
hash = "sha256-jy8BrJSHukRenPbZHw4nPx3cSi7E2GSg//WOXDh90mY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
sourceRoot = "source/api";
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "01-listening-address.patch";
|
||||||
|
url = "https://github.com/GRA0007/crab.fit/commit/a1ac6da0f5e9d10df6bef8d735bc9ecaa9088d14.patch";
|
||||||
|
relative = "api";
|
||||||
|
hash = "sha256-7bmBndS3ow9P9EKmoQrQWcTpS4B3qAnSpeTUF6ox+BM=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
cargoLock = {
|
||||||
|
lockFile = ./Cargo.lock;
|
||||||
|
outputHashes = {
|
||||||
|
"google-cloud-0.2.1" = "sha256-3/sUeAXnpxO6kzx5+R7ukvMCEM001VoEPP6HmaRihHE=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
protobuf
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs =
|
||||||
|
[
|
||||||
|
openssl
|
||||||
|
sqlite
|
||||||
|
]
|
||||||
|
++ lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.apple_sdk.frameworks.CoreFoundation
|
||||||
|
darwin.apple_sdk.frameworks.Security
|
||||||
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||||
|
];
|
||||||
|
|
||||||
|
buildFeatures = [ "${adaptor}-adaptor" ];
|
||||||
|
|
||||||
|
PROTOC = "${protobuf}/bin/protoc";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Enter your availability to find a time that works for everyone";
|
||||||
|
homepage = "https://github.com/GRA0007/crab.fit";
|
||||||
|
license = lib.licenses.gpl3;
|
||||||
|
maintainers = with lib.maintainers; [ thubrecht ];
|
||||||
|
mainProgram = "crabfit-api";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user