Skip to content

Commit

Permalink
fix(providers): installing haskell on arm container (#301)
Browse files Browse the repository at this point in the history
* fix(providers): installing haskell on arm container

Signed-off-by: Aaron Pham <[email protected]>

* chore: only add build dependencies for arm-based

Signed-off-by: Aaron Pham <[email protected]>
  • Loading branch information
aarnphm authored Jul 13, 2022
1 parent d360ffb commit 7f35ee3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/providers/haskell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::nixpacks::{
use anyhow::Result;

use super::Provider;
use std::env::consts::ARCH;

pub struct HaskellStackProvider {}

Expand All @@ -31,6 +32,21 @@ impl Provider for HaskellStackProvider {
"binutils".to_string(),
"make".to_string(),
]);
if ARCH == "aarch64" {
setup_phase.add_apt_pkgs(vec![
"libnuma1".to_string(),
"libnuma-dev".to_string(),
"libtinfo-dev".to_string(),
"libtinfo5".to_string(),
"libc6-dev".to_string(),
"libtinfo6".to_string(),
"llvm-11".to_string(),
"clang".to_string(),
"ninja-build".to_string(),
"zlib1g-dev".to_string(),
])
}

Ok(Some(setup_phase))
}

Expand Down

0 comments on commit 7f35ee3

Please sign in to comment.