mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 12:53:54 +00:00
22 lines
370 B
Nix
22 lines
370 B
Nix
|
{
|
||
|
lib,
|
||
|
rustPlatform,
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
cargo = lib.importTOML ./src/Cargo.toml;
|
||
|
in
|
||
|
rustPlatform.buildRustPackage {
|
||
|
pname = cargo.package.name;
|
||
|
version = cargo.package.version;
|
||
|
|
||
|
src = ./src;
|
||
|
|
||
|
cargoLock.lockFile = ./src/Cargo.lock;
|
||
|
|
||
|
meta = {
|
||
|
description = "Output a path's realpath within a chroot.";
|
||
|
maintainers = [ lib.maintainers.elvishjerricco ];
|
||
|
};
|
||
|
}
|