nix-files/pkgs/additional/mx-sanebot/default.nix

20 lines
421 B
Nix
Raw Normal View History

{ 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" ];
}