nixpkgs/pkgs/by-name/lx/lxd-to-incus/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
782 B
Nix
Raw Normal View History

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;
maintainers = lib.teams.lxc.members;
2023-10-04 20:50:43 +02:00
platforms = lib.platforms.linux;
};
}