remove old unused files for now
This commit is contained in:
parent
8dba8e7ce8
commit
8a6bd41baa
15 changed files with 35 additions and 1804 deletions
|
|
@ -1,27 +0,0 @@
|
|||
#[allow(unused_imports)]
|
||||
use crate::prelude::*;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Hash)]
|
||||
pub(crate) struct NixEvalExpr<E, A> {
|
||||
pub(crate) expr: E,
|
||||
pub(crate) attrpath: A,
|
||||
}
|
||||
|
||||
impl<E, A> NixEvalExpr<E, A>
|
||||
where
|
||||
E: AsRef<OsStr>,
|
||||
A: AsRef<OsStr>,
|
||||
{
|
||||
pub(crate) fn into_command(self) -> Command {
|
||||
let mut cmd = Command::new("nix-instantiate");
|
||||
cmd.arg("--eval")
|
||||
.arg("--json")
|
||||
.arg("--strict")
|
||||
.arg("--expr")
|
||||
.arg(self.expr)
|
||||
.arg("-A")
|
||||
.arg(self.attrpath);
|
||||
|
||||
cmd
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue