29 lines
428 B
Nix
29 lines
428 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "backend";
|
|
version = "0.1";
|
|
|
|
src = lib.fileset.toSource {
|
|
root = ../.;
|
|
fileset = lib.fileset.unions [
|
|
../Cargo.lock
|
|
../Cargo.toml
|
|
../crates
|
|
../.cargo
|
|
];
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ../Cargo.lock;
|
|
};
|
|
|
|
meta = with lib; {
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "backend";
|
|
};
|
|
}
|