pub struct Derivation { /* private fields */ }Expand description
A Nix derivation loaded from its JSON representation.
Derivations are the build recipes used by the Nix store. They describe
how to produce a store path from inputs. Use Derivation::from_json
to construct one and Derivation::add_to_store to register it.
Implementations§
Source§impl Derivation
impl Derivation
Sourcepub fn add_to_store(&self, store: &Store) -> Result<StorePath>
pub fn add_to_store(&self, store: &Store) -> Result<StorePath>
Add this derivation to the store and return its output store path.
§Errors
Returns an error if the derivation cannot be registered in the store.
Trait Implementations§
Source§impl Clone for Derivation
impl Clone for Derivation
Source§impl Debug for Derivation
impl Debug for Derivation
Source§impl Drop for Derivation
impl Drop for Derivation
impl Send for Derivation
Auto Trait Implementations§
impl Freeze for Derivation
impl RefUnwindSafe for Derivation
impl !Sync for Derivation
impl Unpin for Derivation
impl UnsafeUnpin for Derivation
impl UnwindSafe for Derivation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more