!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

900 Members
184 Servers

Load older messages


SenderMessageTime
17 Aug 2023
@catouc:matrix.org@catouc:matrix.org removed their display name catouc.18:39:07
@catouc:matrix.org@catouc:matrix.org left the room.18:39:08
@lxsameer:matrix.orglxsameerhow can I get the store path to a dependency? I want to set an env var for cmake to find a dependency21:56:25
@crtified:crtified.meCRTifiedAre you talking g about flake inputs or derivations as dependency? 21:57:16
@crtified:crtified.meCRTified* Are you talking about flake inputs or derivations as dependency? 21:57:29
@lxsameer:matrix.orglxsameer derivations as dependency i suppose. a package in nixpkgs.legacyPackages... 21:58:22
@crtified:crtified.meCRTified In that case, you should probably ask in #nix:nixos.org as it's not really flake specific 22:19:45
@crtified:crtified.meCRTified (but to keep it short: you can use the packages as part of a string and it will get resolved as a store path, so something like "${some Derivation}" is a string containing the path to the store) 22:21:16
@lxsameer:matrix.orglxsameerthank you 🙇22:21:41
@crtified:crtified.meCRTifiedhttps://nixos.org/manual/nix/unstable/language/string-interpolation.html there are derivations explicitly listed as interpolateable22:22:58
@lxsameer:matrix.orglxsameerThanks a million 22:23:12
@jthulhu:matrix.orgjthulhu changed their display name from jthulhu to Evan.22:49:50
18 Aug 2023
@jthulhu:matrix.orgjthulhu changed their display name from Evan to jthulhu.01:18:41
@shados:nixos.devShados joined the room.05:42:11
@lxsameer:matrix.orglxsameer

hey friends, I'm trying to create a musl based shell using devShell like this:

        devShells = {
          ${x86_64-linux} = nixpkgs.pkgsCross.libcxxStdenv.mkShell {
            nativeBuildInputs = native_build_inputs nixpkgs.pkgsCross;
            buildInputs = build_inputs nixpkgs.pkgsCross;

            shellHook = ''fish && exit'';
          };

19:06:53
@lxsameer:matrix.orglxsameer but I get an error that says: error: attribute 'pkgsCross' missing 19:07:18
@lxsameer:matrix.orglxsameershould I do anything special to access pkgsCross?19:07:41
@crtified:crtified.meCRTifiedIs nixpkgs your nixpkgs flake input? If yes, check out the legacyPackages attribute19:14:37
@lxsameer:matrix.orglxsameeryes it is. ok let me try19:15:02
@lxsameer:matrix.orglxsameershould I import nixpkgs even though it passed as an argument ?19:17:32
@crtified:crtified.meCRTified
In reply to @lxsameer:matrix.org
should I import nixpkgs even though it passed as an argument ?
Either you do that, passing an appropriate system value along, or you use nixpkgs.legacyPackages.x86_64-linux.pkgsCross.foooooo
19:20:43
@crtified:crtified.meCRTified(sorry, on mobile right now, so it's a pain to do proper markdown) 19:21:10
@lxsameer:matrix.orglxsameerahhhhh, got it, I was missing x86_64-linux part19:21:19
@lxsameer:matrix.orglxsameerthank you19:21:22
19 Aug 2023
@mr-qubo:matrix.orgmr-qubo joined the room.11:24:52
@mr-qubo:matrix.orgmr-qubo

Hi! I'm trying to add commands to devShell, like this:

          commands = [
            {
              name = "run-client";
              command = "nixGLIntel client -v --host c71ee55ef19fb0c4b934610d-1024-game-server.challenge.master.camp.allesctf.net -p 31337 --ssl --username 'justCatTheFish!1' --password password123";
            }
          ];

But I get this error:

[...]
          162|
          163|                  commands = [
             |      ^
          164|                      {

       error: cannot coerce a set to a string

What's the correct syntax?

11:26:30
@theoretical-types:matrix.orgtheoretical-types joined the room.12:47:39
@khalilsantana:matrix.org@khalilsantana:matrix.org left the room.19:50:49
@artturin:matrix.orgArtturin
In reply to @mr-qubo:matrix.org

Hi! I'm trying to add commands to devShell, like this:

          commands = [
            {
              name = "run-client";
              command = "nixGLIntel client -v --host c71ee55ef19fb0c4b934610d-1024-game-server.challenge.master.camp.allesctf.net -p 31337 --ssl --username 'justCatTheFish!1' --password password123";
            }
          ];

But I get this error:

[...]
          162|
          163|                  commands = [
             |      ^
          164|                      {

       error: cannot coerce a set to a string

What's the correct syntax?

weird that does seem correct https://github.com/search?q=devShell+commands+language%3ANix&type=code&l=Nix
20:46:22
@lxsameer:matrix.orglxsameer hey friends, I have the following flake, my aim is to have a shell with musl, clang16 and libcxx16. But when i do nix develop nix builds clang-11 and then tries to build clang-16, but it fails with an error about a missing clang-tblgen. Given that, tablegen has to be built as part of llvm itself. Then am i doing it wrong or is it a bug. 21:29:37

Show newer messages


Back to Room ListRoom Version: 6