ilya-fedin / nur-repository Goto Github PK
View Code? Open in Web Editor NEWRepository with my packages for NUR (https://github.com/nix-community/NUR)
Repository with my packages for NUR (https://github.com/nix-community/NUR)
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>
> | ^~~~~~~~~~~~~
No issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.