mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-02-08 13:20:41 +00:00
41 lines
683 B
Nix
41 lines
683 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
pkg-config,
|
|
openssl,
|
|
}: let
|
|
toml = (lib.importTOML ./Cargo.toml).workspace.package;
|
|
in rustPlatform.buildRustPackage {
|
|
pname = "tranquil-pds";
|
|
inherit (toml) version;
|
|
|
|
src = lib.fileset.toSource {
|
|
root = ./.;
|
|
fileset = lib.fileset.intersection (lib.fileset.fromSource (lib.sources.cleanSource ./.)) (
|
|
lib.fileset.unions [
|
|
./Cargo.toml
|
|
./Cargo.lock
|
|
./crates
|
|
./.sqlx
|
|
./migrations
|
|
]
|
|
);
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
license = lib.licenses.agpl3Plus;
|
|
};
|
|
}
|