~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
5 4

[PATCH builds.sr.ht v2] images/nixos: pass optional system attribute to evalConfig

nessdoor <tlopez@keio.jp>
Details
Message ID
<20230827011410.1251936-1-tlopez@keio.jp>
DKIM signature
missing
Download raw message
Patch: +8 -2
From: Nessdoor <tlopez@keio.jp>

This allows for image.nix to be used inside hermetic builds where
builtins.currentSystem is not available as an attribute.
---
Prefer passing `hostPlatform` as a modular option through
`nixpkgs.hostPlatform`, rather than using the now legacy `system`
argument.

 images/nixos/image.nix | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/images/nixos/image.nix b/images/nixos/image.nix
index 227039b..8e23f79 100644
--- a/images/nixos/image.nix
+++ b/images/nixos/image.nix
@@ -1,10 +1,16 @@
{ pkgs ? import <nixpkgs> {} }:
{ pkgs ? import <nixpkgs> { }
, hostPlatform ? { system = builtins.currentSystem; }
}:

let
  makeDiskImage = import "${pkgs.path}/nixos/lib/make-disk-image.nix";
  evalConfig = import "${pkgs.path}/nixos/lib/eval-config.nix";
  config = (evalConfig {
    modules = [ (import ./qemu-system-configuration.nix) ];
    system = null; # Pass system parameters modularly
    modules = [
      (import ./qemu-system-configuration.nix)
      ({ ... }: { nixpkgs.hostPlatform = hostPlatform; })
    ];
  }).config;
in
  makeDiskImage {
-- 
2.40.1

[builds.sr.ht/patches] build failed

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CV2XKZCY8TL1.34X6151FATASK@cirno2>
In-Reply-To
<20230827011410.1251936-1-tlopez@keio.jp> (view parent)
DKIM signature
missing
Download raw message
builds.sr.ht/patches: FAILED in 4m35s

[images/nixos: pass optional system attribute to evalConfig][0] v2 from [nessdoor][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/44014
[1]: tlopez@keio.jp

✗ #1047938 FAILED  builds.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/1047938
✓ #1047937 SUCCESS builds.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/1047937
✓ #1047939 SUCCESS builds.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/1047939
Details
Message ID
<20230920104224.6b1f35c8@lambda>
In-Reply-To
<20230827011410.1251936-1-tlopez@keio.jp> (view parent)
DKIM signature
missing
Download raw message
Looks good, thank you

> From: Nessdoor <tlopez@keio.jp>

^ Looks like a header found its way into the commit message, but this
can be fixed at merge time
Tomas Antonio Lopez <tlopez@keio.jp>
Details
Message ID
<sa74jjiauvx.fsf@keio.jp>
In-Reply-To
<20230920104224.6b1f35c8@lambda> (view parent)
DKIM signature
missing
Download raw message
>> From: Nessdoor <tlopez@keio.jp>
>>
> ^ Looks like a header found its way into the commit message, but this
> can be fixed at merge time

I am very sorry, my eye is not yet trained to spot errors in mailed
patches. I don't know how it ended up in there. If it is a problem and
could result in a delayed merging process, tell me and I will submit a
v3 patch.
Details
Message ID
<CVZJ6CI5EEH1.2PC84IIGGR337@taiga>
In-Reply-To
<sa74jjiauvx.fsf@keio.jp> (view parent)
DKIM signature
missing
Download raw message
On Mon Sep 25, 2023 at 9:57 PM CEST, Tomas Antonio Lopez wrote:
>
> >> From: Nessdoor <tlopez@keio.jp>
> >>
> > ^ Looks like a header found its way into the commit message, but this
> > can be fixed at merge time
>
> I am very sorry, my eye is not yet trained to spot errors in mailed
> patches. I don't know how it ended up in there. If it is a problem and
> could result in a delayed merging process, tell me and I will submit a
> v3 patch.

This isn't an issue, and it's not an error. It was added because your
outgoing email ident does not match the commit author (seems like it's
just the case of the "N"). It will apply normally when I merge it.
Details
Message ID
<CVZJ7FAHRYU9.3UU6WDQ2R7X0K@taiga>
In-Reply-To
<20230827011410.1251936-1-tlopez@keio.jp> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/builds.sr.ht
   3cb88b0..0d9ff47  master -> master
Reply to thread Export thread (mbox)