mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
34 lines
906 B
Nix
34 lines
906 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "stoolap";
|
|
version = "0.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stoolap";
|
|
repo = "stoolap";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-e+RUEEADHbbVF4wfY3wrOUV+C2EmzhV+kLA+k21StuI=";
|
|
};
|
|
|
|
cargoHash = "sha256-ZZa+F0yQKBNkxZgPsMi6imjfojn2oUIrGKmMfjY4tD8=";
|
|
|
|
# On aarch64-darwin, dev target needs to set panic strategy to abort
|
|
# However this must be set while the flag `-Zpanic_abort_tests` is also set,
|
|
# which could only be done in Rust nightly toolchain.
|
|
doCheck = !(with stdenv.hostPlatform; isDarwin && isAarch64);
|
|
|
|
meta = {
|
|
description = "Modern Embedded SQL Database written in Rust";
|
|
homepage = "https://stoolap.io/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ VZstless ];
|
|
mainProgram = "stoolap";
|
|
};
|
|
})
|