Giter VIP home page Giter VIP logo

nur-repository's People

Contributors

actions-user avatar dependabot[bot] avatar ilya-fedin avatar name-snrl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

name-snrl

nur-repository's Issues

Having trouble adapting your `qt6ct` override

Generally, I'm a pretty experienced Nix user. However, this has me stumped. Maybe you could update your flake's nixpkgs input and try to build the package from the overlay?

Here, I have changed a few things. First, you have a top-level with. This is discouraged for what should be obvious reasons (shadowing/clashes, identifier originator ambiguity, thunking). Secondly, I am using Home Manager's qt module which appears to be more correctly configured than the one I had made. The reason the package below overrides the name pkgs.qt6Packages.qt6ct is that the aforementioned module is hard-coded to use that attribute path.

pkgs: pkgs0:
let inherit (pkgs) lib;
in {
  # Does someone know the difference between `kdePackages` and `qt6Packages`?
  # I have tried to find where `kdePackages` is defined and all I can find
  # (that isn't direct usage) is a scope splice.
  # It seems that `qt6Packages` is the earliest instantiation of all the
  # derivations within, and that `kdePackages` probably inherits from it
  # (the scope splice I mentioned).
  # But, `qt6Packages` is not listed in the (unstable) package search
  # (it is in stable).
  # Some Home Manager modules are hard-coded to use `qt6Packages`,
  # but that namespace is (now) missing on the Package Search webpage.
  qt6Packages = pkgs0.qt6Packages // {
    qt6ct = pkgs0.qt6Packages.qt6ct.overrideAttrs (self: super: {
      patches = super.patches or [ ] ++ [
        (pkgs.fetchpatch {
          url =
            "https://patch-diff.githubusercontent.com/raw/trialuser02/qt6ct/pull/43.diff";
          hash = "sha256-r7KtusyM7MWYN/RXpc/CJf3IOLkuN5+FJpa4dNa9b7M=";
        })
      ];
      buildInputs = super.buildInputs or [ ] ++ (with pkgs.kdePackages; [
        qtdeclarative
        kconfig
        kcolorscheme
        kiconthemes
      ]);
      nativeBuildInputs = super.nativeBuildInputs or [ ]
        ++ (with pkgs; with pkgs.kdePackages; [ cmake wrapQtAppsHook qttools ]);
      cmakeFlags = [
        "-DPLUGINDIR=${
          placeholder "out"
        }/${pkgs.kdePackages.qtbase.qtPluginPrefix}"
      ];
    });
  };
}

If you're wondering if the nested attributes override / scope re-splicing works, yes, it does (for everything else at least). I'm just not sure if kdePackages usage is causing the problem here.

       > qt6ctplatformtheme.cpp:47:10: fatal error: QQuickStyle: No such file or directory
       >    47 | #include <QQuickStyle>
       >       |          ^~~~~~~~~~~~~

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.