Unverified Commit 9124465e authored by David Guibert's avatar David Guibert Committed by GitHub
Browse files

waitron: drop (#447867)

parents de445653 4d0d5923
Loading
Loading
Loading
Loading
+0 −40
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule rec {
  pname = "waitron";
  version = "unstable-2020-08-04";
  rev = "2315857d94e3d1a1e79ac48f8f6a68d59d0ce300";

  src = fetchFromGitHub {
    owner = "ns1";
    repo = "waitron";
    inherit rev;
    sha256 = "sha256-ZkGhEOckIOYGb6Yjr4I4e9cjAHDfksRwHW+zgOMZ/FE=";
  };

  vendorHash = null;

  subPackages = [ "." ];

  patches = [
    ./staticfiles-directory.patch
  ];

  meta = with lib; {
    description = "Tool to manage network booting of machines";
    longDescription = ''
      Waitron is used to build machines (primarily bare-metal, but anything that
      understands PXE booting will work) based on definitions from any number of
      specified inventory sources.
    '';
    homepage = "https://github.com/ns1/waitron";
    license = licenses.asl20;
    maintainers = with maintainers; [ guibert ];
    platforms = platforms.linux;
    broken = true; # vendor isn't reproducible with go > 1.17: nix-build -A $name.goModules --check
  };
}
+0 −13
Original line number Diff line number Diff line
diff --git a/main.go b/main.go
index 4046911..a126bae 100644
--- a/main.go
+++ b/main.go
@@ -411,7 +411,7 @@ func main() {
 
 	if configuration.StaticFilesPath != "" {
 		fs := http.FileServer(http.Dir(configuration.StaticFilesPath))
-		r.Handler("GET", "/files/:filename", http.StripPrefix("/files/", fs))
+		r.Handler("GET", "/files/*filepath", http.StripPrefix("/files/", fs))
 		log.Println("Serving static files from " + configuration.StaticFilesPath)
 	}
 
+1 −0
Original line number Diff line number Diff line
@@ -2658,6 +2658,7 @@ mapAliases {

  ### W ###
  w_scan = throw "'w_scan' has been removed due to lack of upstream maintenance"; # Added 2025-08-29
  waitron = throw "'waitron' has been removed because it has been marked as broken since at least November 2024."; # Added 2025-10-01
  wakatime = wakatime-cli; # 2024-05-30
  wavm = throw "wavm has been removed, as it does not build with supported LLVM versions"; # Added 2025-08-10
  wal_e = throw "wal_e was removed as it is unmaintained upstream and depends on the removed boto package; upstream recommends using wal-g or pgbackrest"; # Added 2024-09-22