Files
bro/nix/default.nix
T
2026-05-23 18:35:15 +09:00

35 lines
546 B
Nix

{
lib
, rustPlatform
, stdenv
, installShellFiles
, versionCheckHook
, cargoToml
, cargoLock
, src
}:
let
mainProgram = (lib.head cargoToml.bin).name;
pname = cargoToml.package.name;
in
rustPlatform.buildRustPackage {
inherit pname;
inherit (cargoToml.package) version;
inherit src;
cargoLock.lockFile = cargoLock;
# doCheck = true;
# useNextest = true;
# nativeCheckInputs = [
# versionCheckHook
# ];
meta = with lib; {
license = licenses.mit;
platforms = platforms.linux;
inherit mainProgram;
};
}