refactor: rename derivation binding (crate -> bin)

This commit is contained in:
electria 2026-11-10 13:45:53 -08:00
commit f05eb164cd
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -22,7 +22,7 @@
cargoToml = fromTOML (builtins.readFile "${src}/Cargo.toml");
name = cargoToml.package.name;
crate = pkgs.rustPlatform.buildRustPackage {
bin = pkgs.rustPlatform.buildRustPackage {
inherit name src;
cargoLock.lockFile = "${src}/Cargo.lock";
@ -33,10 +33,10 @@
};
in
{
packages.default = crate;
packages.default = bin;
devShells.default = pkgs.mkShell {
inputsFrom = [ crate ];
inputsFrom = [ bin ];
packages = with pkgs; [
rustc