···1111mod nix_store {
1212 use cc::Build;
1313 use system_deps::Dependencies;
1414- use version_compare::Version;
1414+ use version_compare::{Part, Version};
15151616 fn apply_variant_flags(build: &mut Build, deps: &Dependencies) {
1717 let nix_main = deps
···21212222 build.define("ATTIC_VARIANT_NIX", None);
23232424- let version = if version >= Version::from("2.26").unwrap() {
2525- 226
2626- } else {
2727- 225
2424+ let (major, minor) = match (version.part(0), version.part(1)) {
2525+ (Ok(Part::Number(major)), Ok(Part::Number(minor))) if minor < 100 => (major, minor),
2626+ _ => panic!("Nix version {version} is not supported"),
2827 };
2828+2929+ let version = major * 100 + minor;
2930 build.define("NIX_VERSION", &*format!("{version}"));
3031 }
3132
···6677/// The state of a NAR.
88#[derive(EnumIter, DeriveActiveEnum, Debug, Clone, PartialEq, Eq)]
99-#[sea_orm(rs_type = "String", db_type = "String(Some(1))")]
99+#[sea_orm(rs_type = "String", db_type = "String(StringLen::N(1))")]
1010pub enum NarState {
1111 /// The NAR can be used.
1212 ///
···9090 pub nar_size: i64,
91919292 /// The type of compression in use.
9393- #[sea_orm(column_type = "String(Some(10))")]
9393+ #[sea_orm(column_type = "String(StringLen::N(10))")]
9494 pub compression: String,
95959696 /// Number of chunks that make up this NAR.
+1-1
server/src/database/entity/object.rs
···3737 pub nar_id: i64,
38383939 /// The hash portion of the store path.
4040- #[sea_orm(column_type = "String(Some(32))", indexed)]
4040+ #[sea_orm(column_type = "String(StringLen::N(32))", indexed)]
4141 pub store_path_hash: String,
42424343 /// The full store path being cached, including the store directory.
+1-1
server/src/storage/s3.rs
···9292 }
93939494 async fn config_builder(config: &S3StorageConfig) -> ServerResult<S3ConfigBuilder> {
9595- let shared_config = aws_config::load_defaults(BehaviorVersion::v2024_03_28()).await;
9595+ let shared_config = aws_config::load_defaults(BehaviorVersion::v2025_01_17()).await;
9696 let mut builder = S3ConfigBuilder::from(&shared_config);
97979898 if let Some(credentials) = &config.credentials {