mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
ec02a76ff5
Now it's placed between initrd-switch-root.target and initrd-switch-root.service, meaning it is truly the last thing to happen before switch-root, as it should be.
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 ];
|
|
};
|
|
}
|