File tree Expand file tree Collapse file tree
pkgs/by-name/in/incus-compose Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments