Compare commits

...

2 commits

Author SHA1 Message Date
e200ae53a4
feat(proxmox): Revert the disabling
All checks were successful
build configuration / push_to_cache_vault01 (pull_request) Successful in 1m32s
build configuration / push_to_cache_compute01 (pull_request) Successful in 1m51s
build configuration / push_to_cache_web01 (pull_request) Successful in 1m54s
build configuration / push_to_cache_geo01 (pull_request) Successful in 1m11s
build configuration / push_to_cache_rescue01 (pull_request) Successful in 1m19s
build configuration / push_to_cache_geo02 (pull_request) Successful in 1m7s
build configuration / push_to_cache_bridge01 (pull_request) Successful in 1m5s
build configuration / build_krz01 (pull_request) Successful in 1h1m9s
build configuration / push_to_cache_krz01 (pull_request) Successful in 7m22s
build configuration / build_vault01 (push) Successful in 1m15s
build configuration / build_storage01 (push) Successful in 1m16s
build configuration / build_compute01 (push) Successful in 1m21s
build configuration / build_web01 (push) Successful in 1m44s
build configuration / build_krz01 (push) Successful in 1m54s
lint / check (push) Successful in 24s
build configuration / build_geo01 (push) Successful in 1m5s
build configuration / build_web02 (push) Successful in 1m10s
build configuration / build_geo02 (push) Successful in 1m4s
build configuration / build_rescue01 (push) Successful in 1m22s
build configuration / build_bridge01 (push) Successful in 1m5s
build configuration / push_to_cache_storage01 (push) Successful in 1m51s
build configuration / push_to_cache_geo01 (push) Successful in 1m23s
build configuration / push_to_cache_vault01 (push) Successful in 1m58s
build configuration / push_to_cache_web01 (push) Successful in 2m16s
build configuration / push_to_cache_compute01 (push) Successful in 2m20s
build configuration / push_to_cache_krz01 (push) Successful in 2m12s
build configuration / push_to_cache_geo02 (push) Successful in 1m15s
build configuration / push_to_cache_web02 (push) Successful in 1m17s
build configuration / push_to_cache_rescue01 (push) Successful in 1m17s
build configuration / push_to_cache_bridge01 (push) Successful in 1m6s
2024-10-08 20:59:34 +02:00
62b36ed124 fix(krz01): apply a correctness patch on proxmox-nixos
All checks were successful
lint / check (push) Successful in 23s
Check meta / check_meta (pull_request) Successful in 17s
Check meta / check_dns (pull_request) Successful in 18s
build configuration / build_krz01 (pull_request) Successful in 1m20s
build configuration / build_compute01 (pull_request) Successful in 1m14s
build configuration / build_vault01 (pull_request) Successful in 1m11s
build configuration / build_web02 (pull_request) Successful in 1m9s
build configuration / build_storage01 (pull_request) Successful in 1m17s
lint / check (pull_request) Successful in 23s
build configuration / build_web01 (pull_request) Successful in 1m48s
build configuration / build_bridge01 (pull_request) Successful in 1m3s
build configuration / build_rescue01 (pull_request) Successful in 1m14s
build configuration / build_geo01 (pull_request) Successful in 1m10s
build configuration / build_geo02 (pull_request) Successful in 1m12s
build configuration / push_to_cache_krz01 (pull_request) Successful in 1m22s
build configuration / push_to_cache_web02 (pull_request) Successful in 1m24s
build configuration / push_to_cache_vault01 (pull_request) Successful in 1m41s
build configuration / push_to_cache_compute01 (pull_request) Successful in 2m2s
build configuration / push_to_cache_storage01 (pull_request) Successful in 1m23s
build configuration / push_to_cache_bridge01 (pull_request) Successful in 1m6s
build configuration / push_to_cache_web01 (pull_request) Successful in 2m1s
build configuration / push_to_cache_rescue01 (pull_request) Successful in 1m20s
build configuration / push_to_cache_geo01 (pull_request) Successful in 1m9s
build configuration / push_to_cache_geo02 (pull_request) Successful in 1m8s
To make CI happy.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
2024-10-08 20:49:41 +02:00
3 changed files with 63 additions and 2 deletions

View file

@ -7,9 +7,9 @@ lib.extra.mkConfig {
enabledServices = [
# INFO: This list needs to stay sorted alphabetically
# TODO: re-enable me when #139 is merged. "proxmox"
"nvidia-tesla-k80"
"microvm-router01"
"nvidia-tesla-k80"
"proxmox"
];
extraConfig = {

View file

@ -0,0 +1,54 @@
From 4d6e57d2d577cc105c9e0cd397408e9e3ce85cd0 Mon Sep 17 00:00:00 2001
From: Raito Bezarius <masterancpp@gmail.com>
Date: Tue, 8 Oct 2024 16:33:14 +0200
Subject: [PATCH] fix(packaging): correctness of the build top directory
It was using /build which is an implementation detail and not
guaranteed.
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
---
pkgs/pve-container/default.nix | 6 +++---
pkgs/pve-rs/default.nix | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pkgs/pve-container/default.nix b/pkgs/pve-container/default.nix
index 445c271..5633c0f 100644
--- a/pkgs/pve-container/default.nix
+++ b/pkgs/pve-container/default.nix
@@ -30,7 +30,7 @@ perl536.pkgs.toPerlModule (
postPatch = ''
sed -i Makefile \
-e "s/pct.1 pct.conf.5 pct.bash-completion pct.zsh-completion //" \
- -e "s,/usr/share/lxc,/build/lxc," \
+ -e "s,/usr/share/lxc,$NIX_BUILD_TOP/lxc," \
-e "/pve-doc-generator/d" \
-e "/PVE_GENERATING_DOCS/d" \
-e "/SERVICEDIR/d" \
@@ -45,8 +45,8 @@ perl536.pkgs.toPerlModule (
dontPatchShebangs = true;
postConfigure = ''
- cp -r ${lxc}/share/lxc /build
- chmod -R +w /build/lxc
+ cp -r ${lxc}/share/lxc $NIX_BUILD_TOP/
+ chmod -R +w $NIX_BUILD_TOP/lxc
'';
makeFlags = [
diff --git a/pkgs/pve-rs/default.nix b/pkgs/pve-rs/default.nix
index c024287..881beab 100644
--- a/pkgs/pve-rs/default.nix
+++ b/pkgs/pve-rs/default.nix
@@ -57,7 +57,7 @@ perl536.pkgs.toPerlModule (
];
makeFlags = [
- "BUILDIR=/build"
+ "BUILDIR=$NIX_BUILD_TOP"
"BUILD_MODE=release"
"DESTDIR=$(out)"
"GITVERSION:=${src.rev}"
--
2.46.0

View file

@ -126,4 +126,11 @@ in
hash = "sha256-SgHhW9HCkDQsxT3eG4P9q68c43e3sbDHRY9qs7oSt8o=";
}
];
"proxmox-nixos" = [
{
_type = "static";
path = ./05-pmnos-correctness-build-directory.patch;
}
];
}