argo-workflows: remove unused staticfiles (#423982)

Changed files
-36
pkgs
by-name
ar
argo-workflows
-36
pkgs/by-name/ar/argo-workflows/package.nix
···
pkgsBuildBuild,
}:
-
let
-
# Argo can package a static server in the CLI using the `staticfiles` go module.
-
# We build the CLI without the static server for simplicity, but the tool is still required for
-
# compilation to succeed.
-
# See: https://github.com/argoproj/argo/blob/d7690e32faf2ac5842468831daf1443283703c25/Makefile#L117
-
staticfiles = pkgsBuildBuild.buildGoModule {
-
name = "staticfiles";
-
-
src = fetchFromGitHub {
-
owner = "bouk";
-
repo = "staticfiles";
-
rev = "827d7f6389cd410d0aa3f3d472a4838557bf53dd";
-
hash = "sha256-wchj5KjhTmhc4XVW0sRFCcyx5W9am8TNAIhej3WFWXU=";
-
};
-
-
vendorHash = null;
-
-
excludedPackages = [ "./example" ];
-
-
preBuild = ''
-
cp ${./staticfiles.go.mod} go.mod
-
'';
-
-
ldflags = [
-
"-s"
-
"-w"
-
];
-
};
-
in
buildGoModule rec {
pname = "argo-workflows";
version = "3.6.10";
···
nativeBuildInputs = [
installShellFiles
];
-
-
preBuild = ''
-
mkdir -p ui/dist/app
-
echo "Built without static files" > ui/dist/app/index.html
-
-
${staticfiles}/bin/staticfiles -o server/static/files.go ui/dist/app
-
'';
ldflags = [
"-s"
···
pkgsBuildBuild,
}:
buildGoModule rec {
pname = "argo-workflows";
version = "3.6.10";
···
nativeBuildInputs = [
installShellFiles
];
ldflags = [
"-s"