!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

873 Members
182 Servers

Load older messages


SenderMessageTime
13 Nov 2024
@soispha:vhack.euBenedikt
In reply to @oatmealraisin:matrix.org
  description = "Generator for Playwright test reports";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";

  outputs = { self, nixpkgs }:
    let
      system = "x86_64-linux";
      pkgs = import nixpkgs { inherit system; };
    in
    {
      devShells.${system}.default = pkgs.mkShell
        {
          packages = [
            pkgs.pandoc
            pkgs.texliveFull
            pkgs.dejavu_fonts
          ];
        };
      packages.${system}.default = pkgs.stdenv.mkDerivation
        {
          name = "XeLatexReport";
          src = "./.";
          buildInputs = with pkgs; [
            pandoc
            texliveFull
            dejavu_fonts
          ];
          phases = [ "buildPhase" ];
          buildPhase = ''
            ls
            echo $src
            ls $src
            pwd
            pandoc report.md --pdf-engine xelatex -o report.pdf
          '';
          installPhase = ''
            mkdir -p $out
            cp report.pdf $out/
          '';
        };

    };
}
It is probably not working because scr should be a path (i.e. unquote the ./.)
07:25:14
@antono:matrix.organtono joined the room.11:52:10
@inayet:matrix.orgInayet joined the room.22:15:08
14 Nov 2024
@undaunted2816:matrix.org@undaunted2816:matrix.org joined the room.20:47:27
15 Nov 2024
@phaitonican:matrix.org@phaitonican:matrix.orgRedacted or Malformed Event03:22:44
@phaitonican:matrix.org@phaitonican:matrix.org

Hello. I am trying to use https://nixos.wiki/wiki/Flutter, but running flutter run inside nix-develop I get this error:

Launching lib/main.dart on Linux in debug mode...
Building Linux application...                                   
CMake Error in CMakeLists.txt:
  Imported target "PkgConfig::GTK" includes non-existent path

    "/nix/store/l0zdl1j9gc4w9j5b5k725m8fhlvmx7cb-graphite2-1.3.14/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Generate step failed.  Build files cannot be regenerated correctly.
Error: Unable to generate build files

Anybody know what I do wrong?

03:40:21
@phaitonican:matrix.org@phaitonican:matrix.orgIt seem "graphite" package misses /include folder..03:42:45
@phaitonican:matrix.org@phaitonican:matrix.org * It seem "graphite2" package misses /include folder..03:43:19
@phaitonican:matrix.org@phaitonican:matrix.orgNevermind. I found issue https://github.com/NixOS/nixpkgs/issues/341147#issuecomment-235917165003:49:47
16 Nov 2024
@sheeley:matrix.org@sheeley:matrix.org left the room.02:25:41
@poscat:fedora.imposcat joined the room.05:54:33
@artturin:matrix.orgArtturin
In reply to @phaitonican:matrix.org
It seem "graphite2" package misses /include folder..
It's in the dev output, https://github.com/NixOS/nixpkgs/issues/144170.
19:45:19
@artturin:matrix.orgArtturinDoesn't seem to be an issue in the graphite2 cmake files because there's no paths or include mentioned there19:45:43
@hopland:nitro.chatBigBabyThor

I've got a nixosConfigurations system. How do I go about making an sdImage for it to be burned on to a microSD? Heck, can it be done via the flake? I mean the /dev/mmc* is static by bus id, so...?

22:58:25
@hopland:nitro.chatBigBabyThorAlso, I'd like to make a qemu test vm for use on an x86_64, to build a aarch64 system. Is there a way to do that via the same flake?22:59:31
17 Nov 2024
@matto153:matrix.orgMatthias Meschede joined the room.15:23:31
18 Nov 2024
@pfhuh:matrix.orgpfhuh joined the room.15:08:37
@CodeMichael:matrix.orgCodeMichael joined the room.15:31:17
@anadon:matrix.orgAnadon joined the room.17:50:01
@anadon:matrix.orgAnadonI want to use git repos with Nix Flakes in them directly as if they were package dependencies in another Flake? I can't seem to find good documentation for this. Is it even a thing? The purpose is to improve, but not impose perfection or slowdown, on developers or researchers as they Nix-ify their projects. The application is that I have a root project that needs to be put into a flake, which in turn has a number of other projects which are not Nix packages but could feasibly add a Nix Flake. The end goal is to be able to set up and package a project such that the end result is as easy to replicate for others as described here: https://obscuratur-in-arena.readthedocs.io/en/latest/A-good-way-to-set-up-your-python-project-using-Nix-Direnv-and-Poetry.html17:58:20
@anadon:matrix.orgAnadon * I want to use git repos with Nix Flakes in them directly as if they were package dependencies in another Flake. I can't seem to find good documentation for this. Is it even a thing? The purpose is to improve, but not impose perfection or slowdown, on developers or researchers as they Nix-ify their projects. The application is that I have a root project that needs to be put into a flake, which in turn has a number of other projects which are not Nix packages but could feasibly add a Nix Flake. The end goal is to be able to set up and package a project such that the end result is as easy to replicate for others as described here: https://obscuratur-in-arena.readthedocs.io/en/latest/A-good-way-to-set-up-your-python-project-using-Nix-Direnv-and-Poetry.html18:04:37
20 Nov 2024
@inayet:matrix.orgInayet removed their profile picture.00:59:06
@phaitonican:matrix.org@phaitonican:matrix.orgRedacted or Malformed Event21:59:49
21 Nov 2024
@phaitonican:matrix.org@phaitonican:matrix.orgRedacted or Malformed Event01:56:44
@phaitonican:matrix.org@phaitonican:matrix.orgRedacted or Malformed Event02:00:10
22 Nov 2024
@jake:hillion.co.ukJake Hillion joined the room.00:47:02
@jake:hillion.co.ukJake Hillion

hey all, I'm hoping this is the right place to ask about packaging problems with flakes. I'm trying to add a flake to a project that builds with meson (poor me) and having some trouble with run_command. The error I'm ending up with is:

meson.build:51:16: ERROR: Could not execute command `/build/source/meson-scripts/get_clang_ver /nix/store/hnfkms9dykvh61nwdqydzmbgzzr5lwy0-clang-wrapper-18.1.8/bin/clang'.

I did the usual things: replacing #!/bin/bash in the script with #!/usr/bin/env bash, running the script from my flake directory (./meson-scripts/get_clang_ver /nix/store/hnfkms9dykvh61nwdqydzmbgzzr5lwy0-clang-wrapper-18.1.8/bin/clang, works as intended), doing the same in nix develop -i which also works.

I ran nix build --keep-failed and got note: keeping build directory '/tmp/nix-build-scx.drv-4/build'. I cd'd to /tmp/nix-build-scx.drv-4/ (dropping the final /build, hoping that's where the script chroots) and ran ./build/source/meson-scripts/get_clang_ver /nix/store/hnfkms9dykvh61nwdqydzmbgzzr5lwy0-clang-wrapper-18.1.8/bin/clang in nix develop -i. Also worked. I'm a bit stumped how else to debug this, what else can I do when the problem isn't reproducible in an environment ignoring nix develop?

00:52:30
@jake:hillion.co.ukJake HillionWIP diff if it's helpful: https://github.com/sched-ext/scx/commit/43ef529001d059a799dccbbd2b7a1c4541da0c9601:02:24
@rager:lolrav.esrager set a profile picture.07:47:36
@rager:lolrav.esrager changed their profile picture.07:50:26

Show newer messages


Back to Room ListRoom Version: 6