!UUqahLbShAYkkrXmKs:matrix.org

DevOS

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

Load older messages


SenderMessageTime
21 Jul 2021
@fufexan:matrix.orgfufexan now I'm not sure if callPackage is the way to do this, but it seems to work with neither that nor import ... {} 20:48:56
@blaggacao:matrix.orgDavid Arnold (blaggacao)

Overlays would have to be applyed, then the packages are avaliable as usual. Something like:

{
  pkgs = import nixpkgs { config = {}; overlays [ osu."nixpkgs/wine-tkg"  osu."nixpkgs/winestreamproxy" ];};
  wine-tkg = pkgs.wine-tkg;
}
20:55:10
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Overlays would have to be applyed, then the packages are avaliable as usual. Something like:

{
  pkgs = import nixpkgs { config = {}; overlays [osu."nixpkgs/wine-tkg"  osu."nixpkgs/winestreamproxy" ];};
  wine-tkg = pkgs.wine-tkg;
}
20:55:16
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Overlays would have to be applyed, then the packages are avaliable as usual. Something like:

{
  pkgs = import nixpkgs { config = {}; overlays [
    osu."nixpkgs/wine-tkg"  osu."nixpkgs/winestreamproxy"
  ];};
  wine-tkg = pkgs.wine-tkg;
}
20:55:28
@fufexan:matrix.orgfufexan😲 that makes sense20:55:32
@fufexan:matrix.orgfufexanI haven't thought of that20:55:37
@blaggacao:matrix.orgDavid Arnold (blaggacao) Beware, the order of overlays is important. so wine-tkg overlay would have to go before winestreamproxy overlay 20:56:16
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Overlays would have to be applied, then the packages are avaliable as usual. Something like:

{
  pkgs = import nixpkgs { config = {}; overlays [
    osu."nixpkgs/wine-tkg"  osu."nixpkgs/winestreamproxy"
  ];};
  wine-tkg = pkgs.wine-tkg;
}
20:57:10
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Overlays would have to be applied, then the packages are available as usual. Something like:

{
  pkgs = import nixpkgs { config = {}; overlays [
    osu."nixpkgs/wine-tkg"  osu."nixpkgs/winestreamproxy"
  ];};
  wine-tkg = pkgs.wine-tkg;
}
20:57:18
@fufexan:matrix.orgfufexan

now nix flake check fails with

error: attribute 'currentSystem' missing

       at /nix/store/vmcb8svgl9h84mkqmg1nazl9zgpgn7q0-source/pkgs/top-level/impure.nix:18:43:

           17|   # (build, in GNU Autotools parlance) platform.
           18|   localSystem ? { system = args.system or builtins.currentSystem; }
             |                                           ^
           19|
21:00:21
@fufexan:matrix.orgfufexanoh wait not this one21:00:47
@fufexan:matrix.orgfufexanokay it seems like it was that one21:01:34
@blaggacao:matrix.orgDavid Arnold (blaggacao) when using nix flake (pure by default) builtins.currentSystem, as an impurity, is not available. 21:01:39
@blaggacao:matrix.orgDavid Arnold (blaggacao) * when using nix flake (pure by default) builtins.currentSystem, as an impurity, is not available. 21:01:46
@fufexan:matrix.orgfufexan then how should I set the system for pkgs? 21:02:05
@blaggacao:matrix.orgDavid Arnold (blaggacao)I can't say much about the concrete reasons of the above error, though.21:02:14
@fufexan:matrix.orgfufexanI feel like I'm either over-complicating something or overlays are that complicated themselves21:02:41
@fufexan:matrix.orgfufexanmaybe I shouldn't do what I want using overlays?21:02:53
@blaggacao:matrix.orgDavid Arnold (blaggacao) when you use fup you can pass overlays to the channel's overlaysBuilder 21:03:55
@blaggacao:matrix.orgDavid Arnold (blaggacao) Then fup will spit out self.pkgs.<channelname> with the overlays applied. 21:04:20
@fufexan:matrix.orgfufexan oh, so that will propagate and I will be able to use prev.wine-tkg for example? 21:04:53
@fufexan:matrix.orgfufexanI wouldn't want to export those overlays again, but if this makes things easier I don't mind21:05:48
@fufexan:matrix.orgfufexanthanks!21:05:50
@blaggacao:matrix.orgDavid Arnold (blaggacao) I think self.pkgs is also system scoped so it'd be rather self.pkgs.<system>.<channel> 21:05:52
@blaggacao:matrix.orgDavid Arnold (blaggacao)(didn't double check right now)21:06:02
@fufexan:matrix.orgfufexansounds right21:06:15
@blaggacao:matrix.orgDavid Arnold (blaggacao) you can also use digga 🤣👍️ 21:06:34
@blaggacao:matrix.orgDavid Arnold (blaggacao)It tries to make that aspect as simple as it can get: https://digga.divnix.com/api-reference-channels.html#channelsnameoverlays21:07:07
@fufexan:matrix.orgfufexanI will check it out, thanks21:11:03
@fufexan:matrix.orgfufexan oh, I just realized that exportOverlays intelligently figured out those overlays come from an input so it didn't export them again 21:25:39

Show newer messages


Back to Room ListRoom Version: 6