Coder Social home page Coder Social logo

Violation of the flake schema about nixvim HOT 7 CLOSED

Gerg-L avatar Gerg-L commented on August 29, 2024
Violation of the flake schema

from nixvim.

Comments (7)

traxys avatar traxys commented on August 29, 2024 1

Yeah we know about it, but the alternative is not desirable

from nixvim.

Gerg-L avatar Gerg-L commented on August 29, 2024

# Test that all packages build fine when running `nix flake check`.
checks = config.packages;

found the culprit

from nixvim.

MattSturgeon avatar MattSturgeon commented on August 29, 2024

The wiki documents the schema as

checks."<system>"."<name>" = derivation;

Which is what the code you linked should be doing.

config.packages is the (per-system) result of calling docs/default.nix, which is an attr set containing options-json, man-docs, & docs.

Which should result in the flake output:

checks.<system>
  - options-json
  - man-docs
  - docs

from nixvim.

Gerg-L avatar Gerg-L commented on August 29, 2024

So the packages. Output is wrong too

from nixvim.

traxys avatar traxys commented on August 29, 2024

This seems strange, because for example it is correct for x86_64-linux:

nix repl .
nix-repl> :lf .
nix-repl> builtins.typeOf checks.x86_64-linux
"set"

I am not using a darwin machine, so I am not able to show the schema for it. What machine are you using?

from nixvim.

traxys avatar traxys commented on August 29, 2024

The error I encounter is:

nix flake show
warning: Git tree '/home/traxys/Documents/nixvim' is dirty
git+file:///home/traxys/Documents/nixvim
├───allSystems: unknown
├───checks
│   ├───aarch64-darwin
error:
       … while evaluating the attribute 'optionalValue.value'
         at /nix/store/pfc56yr7y3wflvbgnrpscf2n1m4j3xd7-source/lib/modules.nix:856:5:
          855|
          856|     optionalValue =
             |     ^
          857|       if isDefined then { value = mergedValue; }

       … while evaluating a branch condition
         at /nix/store/pfc56yr7y3wflvbgnrpscf2n1m4j3xd7-source/lib/modules.nix:857:7:
          856|     optionalValue =
          857|       if isDefined then { value = mergedValue; }
             |       ^
          858|       else {};

       … while evaluating definitions from `/nix/store/br885sqy62q1bblwi2bslcfg2193ly75-source/modules/transposition.nix':

       … while evaluating the option `perSystem.aarch64-darwin.checks':

       … while evaluating definitions from `/nix/store/2c7rsdzy5dvz0iqps6qdw3ybvbakfk51-source/flake-modules/packages.nix, via option perSystem':

       … while evaluating the option `perSystem.aarch64-darwin.packages':

       … while evaluating definitions from `/nix/store/2c7rsdzy5dvz0iqps6qdw3ybvbakfk51-source/flake-modules/packages.nix, via option perSystem':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: cannot build '/nix/store/m8xlvjq8j0ggqw885q9rcskxydqmrlir-nixpkgs-nixvim-doc.drv^out' during evaluation because the option 'allow-import-from-derivation' is disabled

Which is a known issue #1154 but there is not much we can do here, we would need something like NixOS/nix#6530

from nixvim.

Gerg-L avatar Gerg-L commented on August 29, 2024

nixvim/docs/default.nix

Lines 7 to 17 in 72ff148

pkgsDoc =
import
(pkgs.applyPatches {
name = "nixpkgs-nixvim-doc";
src = pkgs.path;
patches = [ ./either_recursive.patch ];
})
{
inherit (pkgs) system;
config.allowUnfree = true;
};

here's the IFD

from nixvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.