!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

859 Members
177 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
12 Nov 2024
@ngn999:matrix.org@ngn999:matrix.org left the room.06:59:25
@luke:vuksta.comLuke removed their profile picture.17:33:08
@luke:vuksta.comLuke set a profile picture.17:33:41
@luke:vuksta.comLuke removed their profile picture.17:34:35
@luke:vuksta.comLuke set a profile picture.17:35:11
@azahi:azahi.ccazahi changed their profile picture.18:51:18
@oatmealraisin:matrix.orgoatmealraisin Hey all, I'm trying to understand flakes, what is src in mkDerivation? I'm going off this flake to try to generate a pdf output, but the build directory is empty. https://github.com/NixOS/templates/blob/master/pandoc-xelatex/flake.nix 21:47:50
@oatmealraisin:matrix.orgoatmealraisin Here's my flake.nix : ``` 21:48:04
@oatmealraisin:matrix.orgoatmealraisin
  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/
          '';
        };

    };
}
21:48:14
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

Show newer messages


Back to Room ListRoom Version: 6