20 lines
421 B
Nix
20 lines
421 B
Nix
{ lib
|
|
, emptyDirectory
|
|
, openssl
|
|
, pkg-config
|
|
, rustPlatform
|
|
}:
|
|
|
|
# docs: <nixpkgs>/doc/languages-frameworks/rust.section.md
|
|
rustPlatform.buildRustPackage {
|
|
name = "mx-sanebot";
|
|
src = ./.;
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ];
|
|
|
|
# enables debug builds, if we want: https://github.com/NixOS/nixpkgs/issues/60919.
|
|
hardeningDisable = [ "fortify" ];
|
|
}
|