2023-10-19 13:55:26 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, nix-update-script
|
2023-10-19 13:55:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "lxd-to-incus";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.2";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lxc";
|
|
|
|
repo = "incus";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/incus-${version}";
|
|
|
|
hash = "sha256-WhprzGzTeB8sEMMTYN5j1Zrwg0GiGLlXTqCkcPq0XVo=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
patches = [
|
|
|
|
./d7f7ae55a54437616174f80fb8faa80ae4ffcda4.patch
|
|
|
|
];
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
modRoot = "cmd/lxd-to-incus";
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
vendorHash = "sha256-J95b4fm+VwndoxS8RQF8V8ufI3RjclqzAskEd3ut4bU=";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
CGO_ENABLED = 0;
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
passthru = {
|
2023-11-16 04:20:00 +00:00
|
|
|
updateScript = nix-update-script {
|
|
|
|
extraArgs = [
|
|
|
|
"-vr" "incus-\(.*\)"
|
|
|
|
];
|
|
|
|
};
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "LXD to Incus migration tool";
|
|
|
|
homepage = "https://linuxcontainers.org/incus";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ adamcstephens ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|