mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-02-08 21:30:08 +00:00
38 lines
633 B
Nix
38 lines
633 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
pkg-config,
|
|
openssl,
|
|
}: let
|
|
toml = (lib.importTOML ./Cargo.toml).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
|
|
./src
|
|
./.sqlx
|
|
./migrations
|
|
./frontend
|
|
]
|
|
);
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
doCheck = false;
|
|
}
|