mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
ignite: remove
This commit is contained in:
parent
7e35e26668
commit
0626f988a8
@ -1,72 +0,0 @@
|
||||
{ lib
|
||||
, cni-plugins
|
||||
, buildGoModule
|
||||
, firecracker
|
||||
, containerd
|
||||
, runc
|
||||
, makeWrapper
|
||||
, fetchFromGitHub
|
||||
, git
|
||||
}:
|
||||
|
||||
buildGoModule rec{
|
||||
pname = "ignite";
|
||||
version = "0.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "weaveworks";
|
||||
repo = "ignite";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-WCgNh+iLtxLslzcHuIwVLZpUEhvBJFe1Y84PaPtbtcY=";
|
||||
leaveDotGit = true;
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
doCheck = false;
|
||||
|
||||
postPatch = ''
|
||||
# ignite tries to run cni-plugins programs from /opt/cni/bin
|
||||
substituteInPlace pkg/constants/dependencies.go \
|
||||
--replace "/opt/cni/bin/loopback" ${cni-plugins}/bin/loopback \
|
||||
--replace "/opt/cni/bin/bridge" ${cni-plugins}/bin/bridge
|
||||
|
||||
# ignite tries to run cni-plugins programs from /opt/cni/bin
|
||||
substituteInPlace pkg/network/cni/cni.go \
|
||||
--replace "/opt/cni/bin" ${cni-plugins}/bin
|
||||
|
||||
# fetchgit doesn't fetch tags from git repository so it's necessary to force IGNITE_GIT_VERSION to be ${version}
|
||||
# also forcing git state to be clean because if it's dirty ignite will try to fetch the image weaveworks/ignite:dev
|
||||
# which is not in docker.io, we want it to fetch the image weaveworks/ignite:v${version}
|
||||
substituteInPlace hack/ldflags.sh \
|
||||
--replace '$(git describe --tags --abbrev=14 "''${IGNITE_GIT_COMMIT}^{commit}" 2>/dev/null)' "v${version}" \
|
||||
--replace 'IGNITE_GIT_TREE_STATE="dirty"' 'IGNITE_GIT_TREE_STATE="clean"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
git
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
firecracker
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
patchShebangs ./hack/ldflags.sh
|
||||
export buildFlagsArray+=("-ldflags=$(./hack/ldflags.sh)")
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
for prog in hack ignite ignited ignite-spawn; do
|
||||
wrapProgram "$out/bin/$prog" --prefix PATH : ${lib.makeBinPath [ cni-plugins firecracker containerd runc ]}
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Ignite a Firecracker microVM";
|
||||
homepage = "https://github.com/weaveworks/ignite";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ tfmoraes ];
|
||||
};
|
||||
}
|
@ -417,6 +417,7 @@ mapAliases ({
|
||||
i3-gaps = i3; # Added 2023-01-03
|
||||
icedtea8_web = throw "'icedtea8_web' has been renamed to/replaced by 'adoptopenjdk-icedtea-web'"; # Converted to throw 2023-09-10
|
||||
icedtea_web = throw "'icedtea_web' has been renamed to/replaced by 'adoptopenjdk-icedtea-web'"; # Converted to throw 2023-09-10
|
||||
ignite = throw "'ignite' has been removed as the upstream project was archived, please use 'flintlock' instead"; # Added 2024-01-07
|
||||
imag = throw "'imag' has been removed, upstream gone"; # Added 2023-01-13
|
||||
imagemagick7Big = imagemagickBig; # Added 2021-02-22
|
||||
imagemagick7 = imagemagick; # Added 2021-02-22
|
||||
|
@ -9377,8 +9377,6 @@ with pkgs;
|
||||
irods
|
||||
irods-icommands;
|
||||
|
||||
ignite = callPackage ../applications/virtualization/ignite { };
|
||||
|
||||
igmpproxy = callPackage ../tools/networking/igmpproxy { };
|
||||
|
||||
ihaskell = callPackage ../development/tools/haskell/ihaskell/wrapper.nix {
|
||||
|
Loading…
Reference in New Issue
Block a user