2023-10-04 20:50:43 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2023-10-28 05:21:18 +02:00
|
|
|
, nix-update-script
|
2023-10-04 20:50:43 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "lxd-to-incus";
|
2023-11-27 14:26:29 +01:00
|
|
|
version = "0.3.0";
|
2023-10-04 20:50:43 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lxc";
|
|
|
|
repo = "incus";
|
2023-11-27 14:26:29 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-oPBrIN4XUc9GnBszEWAAnEcNahV4hfB48XSKvkpq5Kk=";
|
2023-10-04 20:50:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
modRoot = "cmd/lxd-to-incus";
|
|
|
|
|
2023-11-27 14:26:29 +01:00
|
|
|
vendorHash = "sha256-/ONflpW1HGvXooPF+Xui8q4xFu/Zq5br+Vjm9d2gm5U=";
|
2023-10-04 20:50:43 +02:00
|
|
|
|
2023-10-28 05:21:18 +02:00
|
|
|
CGO_ENABLED = 0;
|
2023-10-04 20:50:43 +02:00
|
|
|
|
|
|
|
passthru = {
|
2023-10-28 05:21:18 +02:00
|
|
|
updateScript = nix-update-script {
|
|
|
|
extraArgs = [
|
2023-11-27 14:26:29 +01:00
|
|
|
"-vr" "v\(.*\)"
|
2023-10-28 05:21:18 +02:00
|
|
|
];
|
|
|
|
};
|
2023-10-04 20:50:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "LXD to Incus migration tool";
|
|
|
|
homepage = "https://linuxcontainers.org/incus";
|
|
|
|
license = lib.licenses.asl20;
|
2023-12-02 15:38:44 +01:00
|
|
|
maintainers = lib.teams.lxc.members;
|
2023-10-04 20:50:43 +02:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|