Skip to content

Commit 53b98fe

Browse files
committed
incus-compose: init at 1.1.0
Assisted-By: nix-init
1 parent 17312b2 commit 53b98fe

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
nix-update-script,
6+
}:
7+
8+
buildGoModule (finalAttrs: {
9+
pname = "incus-compose";
10+
version = "1.1.0";
11+
__structuredAttrs = true;
12+
13+
src = fetchFromGitHub {
14+
owner = "lxc";
15+
repo = "incus-compose";
16+
tag = "v${finalAttrs.version}";
17+
hash = "sha256-0xPOWzpNVyjQCFwvGi6v1LITgtI/s4rfAUBjWXbzicU=";
18+
};
19+
20+
vendorHash = "sha256-KnQQX66X41cMv3+gu+IsPE5St47SGr6i2Y/gUFpIjmQ=";
21+
22+
env.CGO_ENABLED = 0;
23+
24+
ldflags = [
25+
"-s"
26+
"-w"
27+
"-X=github.com/lxc/incus-compose/cmd/incus-compose/version.Version=${finalAttrs.version}"
28+
"-X=github.com/lxc/incus-compose/cmd/incus-compose/DefaultHealthdImage=ghcr.io/lxc/incus-compose/ic-healthd:${finalAttrs.version}"
29+
];
30+
31+
# tests need an incus daemon running
32+
doCheck = false;
33+
34+
passthru.updateScript = nix-update-script { };
35+
36+
meta = {
37+
description = "Bring the familiar Docker Compose workflow to Incus — run compose.yaml files natively on Incus";
38+
homepage = "https://github.com/lxc/incus-compose";
39+
changelog = "https://github.com/lxc/incus-compose/blob/${finalAttrs.src.rev}/CHANGELOG.md";
40+
license = lib.licenses.asl20;
41+
teams = [ lib.teams.lxc ];
42+
platforms = lib.platforms.linux;
43+
mainProgram = "incus-compose";
44+
};
45+
})

0 commit comments

Comments
 (0)