!9IQChSjwSHXPPWTa:lix.systems

Lix

1104 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms294 Servers

Load older messages


SenderMessageTime
13 May 2024
@raitobezarius:matrix.orgraitobezarius
In reply to @easrng:yuri.im
do they get the nicer progress display without flakes?
yes
23:55:26
@qyriad:katesiria.orgQyriad
In reply to@easrng:yuri.im
do they get the nicer progress display without flakes?
yes, that's part of nix3/new-cli, not flakes, but you can actually get them in the old CLI too: nix-build --log-format bar-with-logs '<nixpkgs>' hello
23:55:27
@qyriad:katesiria.orgQyriad
In reply to@qyriad:katesiria.org
there are four kinds of installables:
  • flakeref + attrpath

  • a full /nix/store path

  • a nix expression and an (optionally empty) attrpath, with --expr (or -E in Lix)

  • a nix file and an (optionally empty) attrpath, with --file/-f

In order:
$ nix build "nixpkgs#neovim"
$ nix build /nix/store/hfvwharmvin21pbxqapzbmwy7gmf8l8v-neovim-0.9.5.drv
$ nix build --file '<nixpkgs>' neovim
$ nix build --impure --expr 'let pkgs = import <nixpkgs> { }; in pkgs.neovim'

all do the same thing
23:57:00
@samrose:matrix.orgsamroseSo maybe there are some ideas in Lix to improve flakes over time eh?23:57:07
@qyriad:katesiria.orgQyriadthat's the hope!23:57:14
@qyriad:katesiria.orgQyriad oh yeah you can also use flakes with the old CLI. I don't think this is documented literally anywhere, but: 

nix-build 'flake:nixpkgs' -A neovim   
23:58:56
@samrose:matrix.orgsamrose
In reply to @qyriad:katesiria.org
oh yeah you can also use flakes with the old CLI. I don't think this is documented literally anywhere, but: 

nix-build 'flake:nixpkgs' -A neovim   
Someone did show me that a while back at nixcon in paris :)
23:59:35
@qyriad:katesiria.orgQyriad (the Nix docs team refusing to document experimental features really just does more harm than good, imho) 23:59:59
14 May 2024
@samrose:matrix.orgsamroseIt seems like the nix run approach could be a candidate way to test non-nixos functionality of Lix on Nix I've been using it to do some tests of building postgres, postgres extensions, and then running pgtap and other postgres tests on a package set. I guess that is more for testing the runnig of software packaged with nix It seemed the nix tests are mostly just like bash integration tests of the cli executable.00:03:07
@samrose:matrix.orgsamrose I am not sure if it would help to have some matrix of machines (x86_64-linux, wsl2, macos, aarch64-linux) that could test the installation of Lix, and then some nix profile install followed by maybe not nix run, but rather just using what was installed, and checking integrity of the Lix installation and package installation, and ... I don't know immediately what else 00:07:30
@samrose:matrix.orgsamrose
In reply to @samrose:matrix.org
I am not sure if it would help to have some matrix of machines (x86_64-linux, wsl2, macos, aarch64-linux) that could test the installation of Lix, and then some nix profile install followed by maybe not nix run, but rather just using what was installed, and checking integrity of the Lix installation and package installation, and ... I don't know immediately what else
the open source postgresql project uses cirrusci https://cirrus-ci.org/faq/#are-there-any-limits which offers a matrix of builders for free to open source projects with the limitations in that link (not the only solution but it might help to use resources that are free to open source projects potentially)
00:10:39
@qyriad:katesiria.orgQyriadhmm, that is good to know00:13:06
@qyriad:katesiria.orgQyriadaarch64-linux is what we are most lacking in right now00:13:19
@samrose:matrix.orgsamroseanyway, I'd love to help and am flexible about how I do it, when it comes to helping test this stuff somehow00:13:57
@samrose:matrix.orgsamroseI guess at cirrus that use containers, although it could still be feasible to use their containers to build and test builds I believe00:14:24
@samrose:matrix.orgsamroseat cirrus they only offer containers for aarch64-linux I mean00:14:43
@samrose:matrix.orgsamroseI don't think github has rolled out their aarch64-linux runners yet other than some beta testing thingy00:15:13
@samrose:matrix.orgsamrosecirrus uses yaml or the (imo kinda wack) starlark language. But it's also possible to just break out into using nix/nix run to script these things once nix is installed on the machine anyway of course00:17:19
@samrose:matrix.orgsamrosethere may be some other ci companies that offer free services to open source projects too, I can look around and see00:18:33
@qyriad:katesiria.orgQyriadwe aren't allergic to yaml or starlark tbh00:21:54
@samrose:matrix.orgsamrosehttps://circleci.com/open-source/ seems to have credits too. Although I don't know the whole background on these companies, so not meant to be an endorsement of any of them per se but the "free to open source" part sounds cool00:25:54
@samrose:matrix.orgsamroseI have used cirrus in the past and at least as a ci service, it worked decently00:26:43
@qyriad:katesiria.orgQyriadwe would need something that we could integrate into gerrit at minimum, and ideally really into our existing CI00:28:17
@samrose:matrix.orgsamrosewhat is the existing CI based on?00:29:22
@samrose:matrix.orgsamrosewas it buildbot?00:29:45
@qyriad:katesiria.orgQyriadyep00:29:55
@samrose:matrix.orgsamroseI had not known about buildbot really before just looking it up now :) But it looks like it's a nice framework to use in lieu of just running scripts00:31:45
@lunaphied:lunaphied.meLunaphied Compared to just running custom scripts yeah it's better but it's really not far off  00:32:06
@raitobezarius:matrix.orgraitobezariusIt's xonsh with a server00:33:03
@raitobezarius:matrix.orgraitobezariusI am not sure I cannot parse if Cirrus CI offer aarch64 Linux builder on demand or on spot or something 00:34:04

There are no newer messages yet.


Back to Room ListRoom Version: 10