!UUqahLbShAYkkrXmKs:matrix.org

DevOS

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

Load older messages


SenderMessageTime
1 Mar 2024
@tomberek:matrix.orgtomberek set a profile picture.15:21:44
17 Apr 2024
@anderscs:matrix.org@anderscs:matrix.org left the room.20:16:33
19 Apr 2024
@princemachiavelli:matrix.org@princemachiavelli:matrix.org left the room.15:50:27
17 Sep 2024
@fufexan:matrix.orgfufexan left the room.19:39:39
2 Jul 2021
@timdeh:matrix.org@timdeh:matrix.org changed the history visibility to "world_readable" from "shared".04:27:28
3 Jul 2021
@h4rdstyl3z:matrix.orgh4rdstyl3z joined the room.21:21:13
5 Jul 2021
@spacesbot:nixos.devspacesbot joined the room.18:44:11
@spacesbot:nixos.devspacesbot 19:00:08
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.org invited @fufexan:matrix.orgfufexan.19:23:11
@fufexan:matrix.orgfufexan joined the room.19:23:39
@fufexan:matrix.orgfufexan

hello there! I have a problem with flake-utils-plus and I was told to consult with David Arnold. this is what I'm getting on nix flake show:

git+file:///home/mihai/Documents/code/git/nur
├───overlay: Nixpkgs overlay
├───packages
│   ├───aarch64-linux
error: attribute 'filterPackages' missing

       at /nix/store/i4ihaf9zkrrddjqbnhcxpwrwbfpr2qhb-source/lib/fromOverlays.nix:39:12:

           38|           **/
           39|         let
             |            ^
           40|

any idea why this happens?

19:27:58
@blaggacao:matrix.orgDavid Arnold (blaggacao) Hi & Welcome! Sure, I can identify filterPackages which was an addition to numtide/flake-utils that I made. Can you check if you have the latest numtide/flake-utils` pinned? 19:40:23
@blaggacao:matrix.orgDavid Arnold (blaggacao)* Hi & Welcome! Sure, I can identify `filterPackages` which was an addition to `numtide/flake-utils` that I made. Can you check if you have the latest `numtide/flake-utils` pinned in your `flake.lock` file?19:40:56
@fufexan:matrix.orgfufexan it seems like it's not the latest. I have c6169a2 while the latest is f7e004a 19:42:00
@blaggacao:matrix.orgDavid Arnold (blaggacao) nix flake lock --update-input utils might be the command (from the top of my head on the cel in the garden taking a sunbath) 19:42:00
@blaggacao:matrix.orgDavid Arnold (blaggacao)😎19:42:19
@fufexan:matrix.orgfufexanokay, that's progress19:42:46
@fufexan:matrix.orgfufexanbut I get a new error now19:42:50
@blaggacao:matrix.orgDavid Arnold (blaggacao)😁19:42:55
@fufexan:matrix.orgfufexan
error: value is a function while a set was expected

       at /nix/store/i4ihaf9zkrrddjqbnhcxpwrwbfpr2qhb-source/lib/fromOverlays.nix:53:29:

           52|             let
           53|               allOverlays = attrValues overlays;
             |                             ^
           54|
19:42:55
@fufexan:matrix.orgfufexan is it a problem that I passed self.overlay to fromOverlays? 19:43:23
@fufexan:matrix.orgfufexanGytis told me that it can be either19:43:31
@fufexan:matrix.orgfufexan * Gytis told me that it can be either overlay or overlays19:43:40
@blaggacao:matrix.orgDavid Arnold (blaggacao)Wait a sec, need to refresh working memory over here.19:43:48
@fufexan:matrix.orgfufexansure thing19:43:52
@fufexan:matrix.orgfufexan seems like it doesn't throw any error when I use overlays andoverlays = utils.lib.exporters.internalOverlays { inherit (self) pkgs inputs; }; 19:45:56
@fufexan:matrix.orgfufexan but packages.${system} is empty 🤔 19:46:11
@blaggacao:matrix.orgDavid Arnold (blaggacao)

So memory refresh resulted in:

  • First the contructor needs to consume self.overlays to become a builder
  • Then the builder needs to consume channels to build
19:47:27
@fufexan:matrix.orgfufexanright, it does that19:47:59
@fufexan:matrix.orgfufexan
{
  description = "NUR packages";

  inputs = {
    nixpkgs.url = github:NixOS/nixpkgs;
    utils.url = github:gytis-ivaskevicius/flake-utils-plus/staging;

    nixpkgs-osu.url = "github:NixOS/nixpkgs/73b982e62194a5d85827d87b0851aee06932979f";
    nixpkgs-kak.url = "github:NixOS/nixpkgs/e5920f73965ce9fd69c93b9518281a3e8cb77040";


    kakoune-cr = { url = "github:alexherbo2/kakoune.cr"; flake = false; };
    picom-jonaburg = { url = "github:jonaburg/picom"; flake = false; };
  };

  outputs = { self, nixpkgs, utils, ... }@inputs:
    utils.lib.systemFlake rec {
      inherit self inputs;

      overlay = import ./pkgs { inherit inputs; };
      overlays = utils.lib.exporters.internalOverlays { inherit (self) pkgs inputs; };

      # build all packages defined in ./pkgs/default.nix for their respective systems
      outputsBuilder = channels: {
        packages = utils.lib.exporters.fromOverlays self.overlays channels;
      };
    };
}

this is my flake if it helps

19:48:28

There are no newer messages yet.


Back to Room ListRoom Version: 6