fix(nix): add migrations

This commit is contained in:
asleepyskye 2025-08-15 13:40:55 -04:00
parent 3c4644f3cc
commit ae9d818f4b
2 changed files with 18 additions and 1 deletions

View file

@ -8,10 +8,11 @@ use std::{
fn main() -> Result<(), Box<dyn Error>> {
let out_dir = env::var("OUT_DIR")?;
let manifest_dir = env::var("CARGO_MANIFEST_DIR")?;
let dest_path = Path::new(&out_dir).join("data.rs");
let mut datafile = File::create(&dest_path)?;
let prefix = "../../../../../../crates/migrate/data";
let prefix = manifest_dir + "/data";
let ct = fs::read_dir("data/migrations")?
.filter(|p| {