Alisa/nix/backend.nix

30 lines
428 B
Nix
Raw Normal View History

2024-07-05 13:45:42 +02:00
{
lib,
rustPlatform,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "backend";
version = "0.1";
2024-07-10 18:54:29 +02:00
src = lib.fileset.toSource {
root = ../.;
fileset = lib.fileset.unions [
../Cargo.lock
../Cargo.toml
../crates
../.cargo
];
};
2024-07-05 13:45:42 +02:00
cargoLock = {
lockFile = ../Cargo.lock;
};
2024-07-05 13:45:42 +02:00
meta = with lib; {
platforms = lib.platforms.all;
mainProgram = "backend";
};
}