!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

869 Members
180 Servers

Load older messages


SenderMessageTime
5 Nov 2024
@phaitonican:matrix.org@phaitonican:matrix.org set a profile picture.12:52:34
6 Nov 2024
@peddie:matrix.org@peddie:matrix.org left the room.12:33:38
@seapat:matrix.orgseapat joined the room.13:46:53
7 Nov 2024
@luke:vuksta.comLukeRedacted or Malformed Event04:42:31
@frumon:matrix.org@frumon:matrix.org left the room.12:28:01
8 Nov 2024
@artur:glasgow.socialmoved to @amadaluzia:tchncs.de changed their display name from (artur 'manuel) to @amadaluzia:tchncs.de.14:29:09
@artur:glasgow.socialmoved to @amadaluzia:tchncs.de changed their display name from @amadaluzia:tchncs.de to moved to @amadaluzia:tchncs.de.14:30:33
9 Nov 2024
@zoriot:tchncs.deZoriotHey, how can I allow unfree packages in my unstable flake overlay?13:25:00
@zoriot:tchncs.deZoriot * Hey, how can I allow unfree packages in my unstable flake overlay? NVM i found a way13:37:44
@zoriot:tchncs.deZoriot *

Hey, how can I allow unfree packages in my unstable flake overlay?
NVM i found a way

{ config, pkgs, ... }:
              let
                overlay-unstable = final: prev: {
                  unstable = import nixpkgs-unstable {
                    system = "x86_64-linux";
                    config.allowUnfree = true;
                  };
                };
              in
              {
                nixpkgs.overlays = [ overlay-unstable ];
              }
13:46:38
@zoriot:tchncs.deZoriot *

Hey, how can I allow unfree packages in my unstable flake overlay?
NVM i found a way

{ config, pkgs, ... }:
              let
                overlay-unstable = final: prev: {
                  unstable = import nixpkgs-unstable {
                    system = "x86_64-linux";
                    config.allowUnfree = true;
                  };
                };
              in
              {
                nixpkgs.overlays = [ overlay-unstable ];
              }
13:46:55
@niten:fudo.imNiten joined the room.20:29:04
@niten:fudo.imNiten changed their display name from Peter to Niten.20:30:14
10 Nov 2024
@metasyntactical:matrix.org@metasyntactical:matrix.org joined the room.17:44:42
11 Nov 2024
@swedishhat:matrix.org@swedishhat:matrix.org joined the room.01:45:18
@swedishhat:matrix.org@swedishhat:matrix.org

I created a post on discourse but I wanted to ask here as well:

I'm trying to set up a dev environment using flakes so that I can develop cores for the MiSTer FPGA project. The project requires version 17.0.2.602 of Quartus Prime, the Intel (né Altera) FPGA IDE.

Nixpkgs-unstable currently references 23.1std.0.991. Is it possible (and reasonable) to somehow adapt quartus.nix so that I can create a flake that uses v17.0.2.602?

01:46:37
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

Show newer messages


Back to Room ListRoom Version: 6