mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-29 23:31:03 +03:00
bd849574be
* add(nix): treefmt / alejandra * fmt the nix tree * add fmt check for nix to ci * switch `nixpkgs-fmt` -> `alejandra`
36 lines
684 B
Nix
36 lines
684 B
Nix
{
|
|
pkgs,
|
|
crate2nix,
|
|
name,
|
|
src,
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
in
|
|
project.workspaceMembers.zellij.build
|