2022-03-10 18:27:39 +03:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
crate2nix,
|
|
|
|
name,
|
|
|
|
src,
|
2022-04-12 10:25:25 +03:00
|
|
|
patchPhase,
|
2022-03-10 18:27:39 +03:00
|
|
|
postInstall,
|
|
|
|
nativeBuildInputs,
|
|
|
|
desktopItems,
|
|
|
|
meta,
|
|
|
|
}: let
|
|
|
|
inherit
|
|
|
|
(import "${crate2nix}/tools.nix" {inherit pkgs;})
|
|
|
|
generatedCargoNix
|
|
|
|
;
|
2022-10-04 13:23:04 +03:00
|
|
|
darwinBuildInputs = pkgs.lib.optionals pkgs.stdenv.isDarwin [
|
|
|
|
pkgs.darwin.apple_sdk.frameworks.DiskArbitration
|
|
|
|
pkgs.darwin.apple_sdk.frameworks.Foundation
|
|
|
|
];
|
2022-03-06 16:28:54 +03:00
|
|
|
|
2022-03-13 15:43:29 +03:00
|
|
|
project =
|
|
|
|
import
|
|
|
|
(generatedCargoNix {
|
|
|
|
inherit name src;
|
|
|
|
})
|
|
|
|
{
|
|
|
|
inherit pkgs;
|
|
|
|
buildRustCrateForPkgs = pkgs:
|
|
|
|
pkgs.buildRustCrate.override {
|
|
|
|
defaultCrateOverrides =
|
|
|
|
pkgs.defaultCrateOverrides
|
|
|
|
// {
|
|
|
|
# Crate dependency overrides go here
|
|
|
|
zellij = attrs: {
|
2022-04-12 10:25:25 +03:00
|
|
|
inherit postInstall desktopItems meta name nativeBuildInputs patchPhase;
|
2022-10-04 13:23:04 +03:00
|
|
|
buildInputs = darwinBuildInputs;
|
|
|
|
};
|
|
|
|
sysinfo = attrs: {
|
|
|
|
buildInputs = darwinBuildInputs;
|
2022-03-13 15:43:29 +03:00
|
|
|
};
|
2022-03-09 10:52:52 +03:00
|
|
|
};
|
2022-03-13 15:43:29 +03:00
|
|
|
};
|
|
|
|
};
|
2022-03-06 16:28:54 +03:00
|
|
|
in
|
2022-03-10 18:27:39 +03:00
|
|
|
project.workspaceMembers.zellij.build
|