!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

623 Members
128 Servers

Load older messages


SenderMessageTime
8 Apr 2024
@vengmark2:matrix.org@vengmark2:matrix.org joined the room.00:53:43
@theophane:hufschmitt.net@theophane:hufschmitt.net left the room.08:54:27
@lychee:lefishe.club@lychee:lefishe.club changed their display name from lychee to kay.17:11:03
@tobtobxx:matrix.orgTobTobXX joined the room.19:38:48
@tobtobxx:matrix.orgTobTobXXHi just a quick question: I have a non-flake NixOS configuration and I want to use the NixOS Module from a flake. How would I go about that? Thank you!19:39:36
@gsaurel:laas.frnim65s TobTobXX: for this, I used https://nixos-and-flakes.thiscute.world/nixos-with-flakes/nixos-with-flakes-enabled and was quite happy with it :) 19:52:18
9 Apr 2024
@conr:mozilla.org@conr:mozilla.org left the room.03:14:27
@raf:notashelf.dev@raf:notashelf.dev joined the room.17:53:29
10 Apr 2024
@fomosapien:matrix.org@fomosapien:matrix.org changed their display name from Human to Triskelion.11:16:49
11 Apr 2024
@pxc:matrix.orgpxc joined the room.18:10:23
13 Apr 2024
@alex3829:matrix.org@alex3829:matrix.org joined the room.16:03:47
14 Apr 2024
@bootstrapper:matrix.orgIdo Samuelson changed their profile picture.04:54:41
@aftix:matrix.org@aftix:matrix.org joined the room.05:21:45
@aftix:matrix.org@aftix:matrix.org Is it possible to pin a flake's input to a specific package in nixpkgs? i.e. I would like to use a flake A from a "github:...", but A has an input B that points at another "github:...", and i'd like to point it at the pkgs.B i have in my environment.systemPackages instead 05:23:41
@windchimesofmagic:matrix.org@windchimesofmagic:matrix.org left the room.17:38:14
15 Apr 2024
@peacememories:matrix.orgpeacememories (Old)
In reply to @aftix:matrix.org
Is it possible to pin a flake's input to a specific package in nixpkgs? i.e. I would like to use a flake A from a "github:...", but A has an input B that points at another "github:...", and i'd like to point it at the pkgs.B i have in my environment.systemPackages instead
can you share which flake this is? what you can do kind of depends on how that flake is structured in my experience.
i don't think overriding an input with a specific package will work, since nix flakes expect inputs to always be flakes.
a lot of flakes are structured in a way that you can pass a package override to one of its functions. or maybe it has an overlay that you can use instead of packages output, that does not specify the dependency you want to override?
05:35:58
@aftix:matrix.org@aftix:matrix.orgIt's the hyprland-plugins flake and I would like to pin it against the hyprland package in unstable. The plugins flake starts off with `inherit (inputs.hyprland) nixpkgs` so it seems to me like it won't be possible 05:40:22
@nat:nekopon.plnat joined the room.17:04:08
16 Apr 2024
@dunxen:matrix.orgdunxen joined the room.12:23:18
@gdarends:matrix.orggdarends joined the room.12:26:46
@gdarends:matrix.orggdarendsHi all13:33:31
@gdarends:matrix.orggdarendsBeen experimenting with NixOS and it's been great so far.13:33:59
@gdarends:matrix.orggdarendsI did come across an application that I need to install but it is not in nixpkgs and I'm wondering how to install this. It's an application which I can find the executable binary on the product website. I searched the internet and there is some suggestion to create a derivation which I did. But I don't know how to load this in my flake. I couldn't find any example of how to do this.13:36:58
@gdarends:matrix.orggdarends
{ lib, stdenv, fetchurl, ...}:

stdenv.mkDerivation rec {
    name = "stereo_tool_gui_jack_64";
    version = "10.30";
    src = fetchurl {
        curlOpts = [ "-L" ];
        url = "https://www.stereotool.com/download/stereo_tool_gui_jack_64";
        sha = "b32d69b3892732548a55aa5241327afbc43bc7bd3f0a94548fb524596524ada2";
    };

    installPhase = ''
        mkdir -p $out/bin
        mkdir -p $out/share/applications
        cp $src $out/bin
    '';
}
13:41:59
@gdarends:matrix.orggdarendsI saved this file in my flake project. But how do I call this?13:42:44
@kranzes:matrix.orgIlan Joselevich (Kranzes)
In reply to @gdarends:matrix.org
I saved this file in my flake project. But how do I call this?
packages.X.Y = inputs.nixpkgs.legacyPackages.X.callPackage ./file.nix { };
14:00:43
@kranzes:matrix.orgIlan Joselevich (Kranzes)X being the system architecture14:00:56
@kranzes:matrix.orgIlan Joselevich (Kranzes)Y being the name of the package output14:01:01
@kranzes:matrix.orgIlan Joselevich (Kranzes)replace file with the file name14:01:06
@kranzes:matrix.orgIlan Joselevich (Kranzes) * replace file.nix with the file name14:01:17

Show newer messages


Back to Room ListRoom Version: 6