Nix CI tryouts
Build image / build-image (push) Successful in 24s

This commit is contained in:
2025-10-06 03:26:14 +02:00
committed by Paul Brinkmeier
parent 7cf2f53793
commit 96dc4c924d
2 changed files with 38 additions and 17 deletions
+17 -4
View File
@@ -16,15 +16,22 @@
vrnp-static = pkgs.buildGoModule {
pname = "vrnp";
version = "0.0.10";
version = "0.0.10-test";
vendorHash = null;
# For building the package, we use only the files not ignored by Git as inputs.
# Also, flake.nix and flake.lock are not included to avoid annoying rebuilds when
# Also, flake.nix, flake.lock and .gitea are not included to avoid annoying rebuilds when
# working on them.
src = pkgs.lib.cleanSourceWith {
src = gitignore.lib.gitignoreSource ./.;
filter = path: type: builtins.baseNameOf path != "flake.nix" && builtins.baseNameOf path != "flake.lock";
src = ./.;
filter = gitignore.lib.gitignoreFilterWith {
basePath = ./.;
extraRules = ''
flake.nix
flake.lock
.gitea
'';
};
};
# Avoid linking against libc
@@ -55,6 +62,12 @@
config.Cmd = [ "${vrnp-static}/bin/vrnp" ];
};
};
apps = {
crane = {
type = "app";
program = "${pkgs.crane}/bin/crane";
};
};
}
);
}