zellij/nix/crate2nix.nix
a-kenji bc44a77f1c
add: plugins to nix builds (#1314)
* add: plugins to nix builds

* chore(fmt): treefmt
2022-04-12 09:25:25 +02:00

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