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.

44 lines
881 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-10-28 05:21:18 +02:00
version = "0.2";
2023-10-04 20:50:43 +02:00
src = fetchFromGitHub {
owner = "lxc";
repo = "incus";
2023-10-28 05:21:18 +02:00
rev = "refs/tags/incus-${version}";
hash = "sha256-WhprzGzTeB8sEMMTYN5j1Zrwg0GiGLlXTqCkcPq0XVo=";
2023-10-04 20:50:43 +02:00
};
2023-10-28 05:21:18 +02:00
patches = [
./d7f7ae55a54437616174f80fb8faa80ae4ffcda4.patch
];
2023-10-04 20:50:43 +02:00
modRoot = "cmd/lxd-to-incus";
2023-10-28 05:21:18 +02:00
vendorHash = "sha256-J95b4fm+VwndoxS8RQF8V8ufI3RjclqzAskEd3ut4bU=";
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 = [
"-vr" "incus-\(.*\)"
];
};
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 = with lib.maintainers; [ adamcstephens ];
platforms = lib.platforms.linux;
};
}