!UUqahLbShAYkkrXmKs:matrix.org

DevOS

38 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
24 Sep 2021
@aciceri:nixos.devaciceri
In reply to @blaggacao:matrix.org
That interface sits really at the nix level I guess. You could just override the checks output. (With //, for example)
But can I override checks in the flake outputs only in a certain case?
19:51:38
@blaggacao:matrix.orgDavid Arnold (blaggacao) You'd have to make your own version of checks. You could assign the mkFlakes output to something and then manipulate it. 19:52:38
@blaggacao:matrix.orgDavid Arnold (blaggacao) let output = mkFlakes ... in ... 19:53:45
@aciceri:nixos.devaciceri I understood what you say but I want to override my checks.aarch64-linux only if the host machine (I mean the machine where I executed nix flake check) has binfmt.emulatedSystems = [ "aarch64-linux" ]; 19:54:10
@aciceri:nixos.devaciceriThis way the flake wouldn't be pure I think19:54:38
@blaggacao:matrix.orgDavid Arnold (blaggacao)Ah, yeah.19:54:45
@blaggacao:matrix.orgDavid Arnold (blaggacao) You could just build certain checks by hand. 19:55:16
@aciceri:nixos.devaciceriCan I read the "currently running configuration" inside a Flake?19:55:29
@blaggacao:matrix.orgDavid Arnold (blaggacao) nix build .#... 19:55:30
@blaggacao:matrix.orgDavid Arnold (blaggacao)(one by one)19:55:34
@aciceri:nixos.devaciceri
In reply to @blaggacao:matrix.org
nix build .#...
Yes, I could make a script that reads nix flake show and then run a sequence of nix build according to the machine where that command is launched
19:56:44
@aciceri:nixos.devaciceriA little bit too hacky maybe19:56:54
@blaggacao:matrix.orgDavid Arnold (blaggacao)It's ok. The problem is in the teaying design, I guess.19:57:13
@blaggacao:matrix.orgDavid Arnold (blaggacao)* It's ok. The problem is in the teasting design, I guess.19:57:42
@blaggacao:matrix.orgDavid Arnold (blaggacao)* It's ok. The problem is in the testing design, I guess.19:57:52
@aciceri:nixos.devaciceriMmm, I can't understand what you mean19:58:04
@aciceri:nixos.devaciceri * yeah19:58:42
@aciceri:nixos.devaciceri However for a similar task I think this would turn out useful. 19:59:08
@aciceri:nixos.devaciceri Probabily using this and jq it could be a one line 19:59:58
@aciceri:nixos.devaciceri David Arnold (blaggacao): However thank you again! Sorry for the many questions and the bad english 20:00:49
@blaggacao:matrix.orgDavid Arnold (blaggacao)I mean why wouldn't you test all the architectures that you declared as supported in an environment where you can do that.20:01:47
@blaggacao:matrix.orgDavid Arnold (blaggacao)Maybe Github is not the right tool. But with a little hackery, it might still be useful.20:02:15
@blaggacao:matrix.orgDavid Arnold (blaggacao)I don't mean to push back, just set the context. 😆😁20:02:47
@pachumicchu:myrdd.infoPacman99I got in a PR to do the externalModules -> modules rename. I'm not very familiar with git submodules, what is the process to update devos with API changes?. I added a commit to the submodule in digga, but is there some way to connect that to a PR in devos?21:20:37
@pachumicchu:myrdd.infoPacman99Also just saw the build error, I'll get to that soon21:24:28
@pachumicchu:myrdd.infoPacman99Ohh well my question above is related to the build error I think21:24:53
@blaggacao:matrix.orgDavid Arnold (blaggacao)You can push that commit directly to a branch on devos, then do the PR there.21:25:42
@pachumicchu:myrdd.infoPacman99Can I do that within the submodule(as in within examples/downstream) or should I do it in a separate clone of devos?21:26:41
@blaggacao:matrix.orgDavid Arnold (blaggacao)Yes, the submodule is like another git worktree.21:28:16
@pachumicchu:myrdd.infoPacman99ok got it, https://github.com/divnix/devos/pull/37821:30:37

Show newer messages


Back to Room ListRoom Version: 6