~fgaz

Italy

https://fgaz.me/about

CS student @chalmers.se | Haskell | NixOS | Risiko!

~fgaz/public-inbox

Last active 10 months ago

~fgaz/haskell-gemini-devel

Last active 1 year, 6 months ago
View more

Recent activity

Re: [PATCH builds.sr.ht] crontab: add nixos/21.11 4 days ago

From Francesco Gazzetta to ~sircmpwn/sr.ht-dev

On Sat, 04 Dec 2021 21:32:47 +0100
"Drew DeVault" <sir@cmpwn.com> wrote:

> Does the earlier verison need to be removed? Come to think of it,
> should it be removed from the images, too? You removed it from
> compatibility.md but I didn't notice until now.

We should NOT remove 21.05 yet (from the images at least), see
our support policy in compatibility.md

[PATCH builds.sr.ht] nixos: Update store ping command for unstable 21 days ago

From Francesco Gazzetta to ~sircmpwn/sr.ht-dev

update it to nix store ping for unstable, but also keep the nix
ping-store alternative in case the script is run on current stable
---
Refresh jobs are failing: https://builds.sr.ht/~sircmpwn/nixos
 images/nixos/genimg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/images/nixos/genimg b/images/nixos/genimg
index 9260872..c015a80 100755
--- a/images/nixos/genimg
+++ b/images/nixos/genimg
@@ -25,7 +25,7 @@ then
fi

[message trimmed]

Re: [builds.sr.ht] Feature request: artifacts globbing 22 days ago

From Francesco Gazzetta to ~sircmpwn/sr.ht-discuss

On Tue, 16 Nov 2021 15:45:51 +0100
"Drew DeVault" <sir@cmpwn.com> wrote:

> tar + sh might work. Kind of messy.

Yeah, making the runner extract the tar doesn't sound too good...
What about first obtaining the list of files though said sh call, then
transferring them one by one like it's done now with multiple artifacts?

Re: [builds.sr.ht] Feature request: artifacts globbing 22 days ago

From Francesco Gazzetta to ~sircmpwn/sr.ht-discuss

On Tue, 16 Nov 2021 12:06:42 +0100
"Drew DeVault" <sir@cmpwn.com> wrote:

> The main issue is finding a way of executing the glob pattern to find
> the list of artifacts in a means which is portable across all of our
> images.

Find patterns should be portable enough, though it's an extra package
to require for every distro.
Alternatively, sh could be used.

The only exception would be 9front, that needs walk and rc calls
instead, but I guess that image is already special cased?

Re: [builds.sr.ht] Feature request: artifacts globbing 22 days ago

From Francesco Gazzetta to ~sircmpwn/sr.ht-discuss

For reference both GitHub Actions and GitLab CI support it:

https://github.com/actions/upload-artifact#upload-using-a-wildcard-pattern
https://docs.gitlab.com/ee/ci/yaml/index.html#artifactspaths

Another option could be to allow specifying directories of artifacts.

[PATCH builds.sr.ht] nixos: Remove obsolete make-disk-image workaround 23 days ago

From Francesco Gazzetta to ~sircmpwn/sr.ht-dev

make-disk-image landed in the stable branch, so there's no need to
import it from github
---
This is safe to apply even though the 20.09 image is still available,
since there's no nixos < 21.05 in the crontab
 images/nixos/image.nix | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/images/nixos/image.nix b/images/nixos/image.nix
index 6e0706d..227039b 100644
--- a/images/nixos/image.nix
+++ b/images/nixos/image.nix
@@ -1,13 +1,7 @@
{ pkgs ? import <nixpkgs> {} }:
[message trimmed]

Re: [builds.sr.ht] Feature request: artifacts globbing 23 days ago

From Francesco Gazzetta to ~sircmpwn/sr.ht-discuss

Misclicked "Reply" instead of "reply all", sorry for the double mail

On Mon, 15 Nov 2021 18:27:15 +0100
"Drew DeVault" <sir@cmpwn.com> wrote:

> This has been requested before. Are you not able to solve your problem
> by, for example, creating a symlink from the inconsistent filename to
> a more consistent path?

That's what I'm doing, but there are two issues with it:

* The artifact gets renamed, and sometimes the name is important (like
  in the .deb example, having a versionless name is confusing)
* It isn't possible to produce a variable number of artifacts (this can

[builds.sr.ht] Feature request: artifacts globbing 23 days ago

From Francesco Gazzetta to ~sircmpwn/sr.ht-discuss

Sometimes the name of an artifact can depend on some data such as the
project's version (eg. somepackage-1.0.deb).

In this case, when that data is updated, the build manifest has to be
updated too.

Other times, the exact number of artifacts may not even be known in
advance.

It'd be nice if the artifacts field allowed basic (* and ?) globbing,
so one could write:
  artifacts: somepackage-*.deb

[PATCH builds.sr.ht] Remove end-of-life NixOS 20.09 23 days ago

From Francesco Gazzetta to ~sircmpwn/sr.ht-dev

---
This is long overdue! I'll send patches to remove old images sooner, now
that it's clarified in
https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/26498
 images/nixos/20.09/functions | 1 -
 images/nixos/20.09/genimg    | 3 ---
 2 files changed, 4 deletions(-)
 delete mode 120000 images/nixos/20.09/functions
 delete mode 100755 images/nixos/20.09/genimg

diff --git a/images/nixos/20.09/functions b/images/nixos/20.09/functions
deleted file mode 120000
index c0b5bcc..0000000
--- a/images/nixos/20.09/functions
[message trimmed]

[PATCH sr.ht-docs] Clarify the NixOS support policy 23 days ago

From Francesco Gazzetta to ~sircmpwn/sr.ht-dev

---
 builds.sr.ht/compatibility.md | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/builds.sr.ht/compatibility.md b/builds.sr.ht/compatibility.md
index d5a85d2..3cef8a5 100644
--- a/builds.sr.ht/compatibility.md
@@ -730,8 +730,14 @@ Custom package repositories are not supported on NetBSD builds.

Maintainer: Francesco Gazzetta <fgaz@fgaz.me>

Support policy: NixOS upstream does not have a clear support policy. We ship the
latest stable version and the latest bleeding edge.
[message trimmed]