mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-27 14:34:32 +03:00
bc44a77f1c
* add: plugins to nix builds * chore(fmt): treefmt
38 lines
747 B
Nix
38 lines
747 B
Nix
{
|
|
pkgs,
|
|
crate2nix,
|
|
name,
|
|
src,
|
|
patchPhase,
|
|
postInstall,
|
|
nativeBuildInputs,
|
|
desktopItems,
|
|
meta,
|
|
}: let
|
|
inherit
|
|
(import "${crate2nix}/tools.nix" {inherit pkgs;})
|
|
generatedCargoNix
|
|
;
|
|
|
|
project =
|
|
import
|
|
(generatedCargoNix {
|
|
inherit name src;
|
|
})
|
|
{
|
|
inherit pkgs;
|
|
buildRustCrateForPkgs = pkgs:
|
|
pkgs.buildRustCrate.override {
|
|
defaultCrateOverrides =
|
|
pkgs.defaultCrateOverrides
|
|
// {
|
|
# Crate dependency overrides go here
|
|
zellij = attrs: {
|
|
inherit postInstall desktopItems meta name nativeBuildInputs patchPhase;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
in
|
|
project.workspaceMembers.zellij.build
|