build(nix): apply overrrides correctly (#1194)
Overrides in the global scope dont apply all attributes for the package in `crate2nix`.
This commit is contained in:
parent
ef8f3d1f56
commit
1481fdf63f
2 changed files with 7 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
, name
|
, name
|
||||||
, src
|
, src
|
||||||
, postInstall
|
, postInstall
|
||||||
|
, nativeBuildInputs
|
||||||
, desktopItems
|
, desktopItems
|
||||||
, meta
|
, meta
|
||||||
}:
|
}:
|
||||||
|
|
@ -20,8 +21,11 @@ let
|
||||||
buildRustCrateForPkgs = pkgs:
|
buildRustCrateForPkgs = pkgs:
|
||||||
pkgs.buildRustCrate.override {
|
pkgs.buildRustCrate.override {
|
||||||
defaultCrateOverrides = pkgs.defaultCrateOverrides // {
|
defaultCrateOverrides = pkgs.defaultCrateOverrides // {
|
||||||
inherit postInstall desktopItems meta;
|
|
||||||
# Crate dependency overrides go here
|
# Crate dependency overrides go here
|
||||||
|
zellij = attrs: {
|
||||||
|
inherit postInstall desktopItems meta name nativeBuildInputs;
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,8 @@ flake-utils.lib.eachSystem [
|
||||||
|
|
||||||
# crate2nix - better incremental builds, but uses ifd
|
# crate2nix - better incremental builds, but uses ifd
|
||||||
packages.zellij = pkgs.callPackage ./crate2nix.nix {
|
packages.zellij = pkgs.callPackage ./crate2nix.nix {
|
||||||
inherit crate2nix name src desktopItems postInstall meta;
|
inherit crate2nix name src desktopItems postInstall
|
||||||
|
meta nativeBuildInputs;
|
||||||
};
|
};
|
||||||
|
|
||||||
# native nixpkgs support - keep supported
|
# native nixpkgs support - keep supported
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue