Skip to content

Commit

Permalink
testing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed May 5, 2024
1 parent 127a23c commit 11e64a9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/machine.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
use std::path::PathBuf;

use crate::Result;


#[test]
fn api_design() {
let host = Local::new();
let target = LocalRoot::new();
let system = (host, target);

let result = system.build("github:NixOS/nixpkgs#hello^out");
system.run([
"ln",
"-vsfT",
result,
"/tmp/foo"
]);
}

pub trait System {
fn new() -> Self;

fn build(&self) -> Result<PathBuf>;
}

pub struct SystemT<Host, Target> {
host: Host,
target: Target
}
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ mod logging;
mod nixos;
mod search;
mod util;
mod machine;

use crate::interface::NHParser;
use crate::interface::NHRunnable;
Expand Down

0 comments on commit 11e64a9

Please sign in to comment.