incus-unwrapped: 0.1 -> 0.2

This commit is contained in:
Adam Stephens 2023-10-27 23:20:40 -04:00
parent ed605168c0
commit f1e2ae3677
No known key found for this signature in database

View file

@ -10,21 +10,21 @@
, sqlite , sqlite
, udev , udev
, installShellFiles , installShellFiles
, gitUpdater , nix-update-script
}: }:
buildGoModule rec { buildGoModule rec {
pname = "incus-unwrapped"; pname = "incus-unwrapped";
version = "0.1"; version = "0.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lxc"; owner = "lxc";
repo = "incus"; repo = "incus";
rev = "refs/tags/incus-${version}"; rev = "refs/tags/incus-${version}";
hash = "sha256-DCNMhfSzIpu5Pdg2TiFQ7GgLEScqt/Xqm2X+VSdeaME="; hash = "sha256-WhprzGzTeB8sEMMTYN5j1Zrwg0GiGLlXTqCkcPq0XVo=";
}; };
vendorHash = "sha256-Pk0/SfGCqXdXvNHbokSV8ajFHeOv0+Et0JytRCoBLU4="; vendorHash = "sha256-4fxQHtvRULTyKJTGdo42qwWQUSIWqbqOO1Wf8daBP/s=";
postPatch = '' postPatch = ''
substituteInPlace internal/usbid/load.go \ substituteInPlace internal/usbid/load.go \
@ -54,10 +54,8 @@ buildGoModule rec {
ldflags = [ "-s" "-w" ]; ldflags = [ "-s" "-w" ];
tags = [ "libsqlite3" ]; tags = [ "libsqlite3" ];
preBuild = '' # required for go-cowsql.
# required for go-cowsql. CGO_LDFLAGS_ALLOW = "(-Wl,-wrap,pthread_create)|(-Wl,-z,now)";
export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)"
'';
postBuild = '' postBuild = ''
make incus-agent incus-migrate make incus-agent incus-migrate
@ -81,9 +79,11 @@ buildGoModule rec {
''; '';
passthru = { passthru = {
updateScript = gitUpdater { updateScript = nix-update-script {
rev-prefix = "incus-"; extraArgs = [
}; "-vr" "incus-\(.*\)"
];
};
}; };
meta = { meta = {