mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 02:27:44 +00:00
Fix rust project building
This commit is contained in:
parent
0d22d39a83
commit
f90163ad34
2 changed files with 41 additions and 33 deletions
|
@ -6,26 +6,20 @@ in {
|
||||||
shellAliases.x = "hx";
|
shellAliases.x = "hx";
|
||||||
};
|
};
|
||||||
|
|
||||||
# nixpkgs.overlays = [(self: super: {
|
nixpkgs.overlays = [(self: super: {
|
||||||
# helix = super.helix.overrideAttrs (old: {
|
helix = super.helix.overrideAttrs (old: {
|
||||||
# version = "25.01.1";
|
src = self.fetchzip {
|
||||||
|
url = "https://github.com/cull-os/helix/releases/download/ci-release-25.01.1/helix-ci-release-25.01.1-source.tar.xz";
|
||||||
# src = self.fetchzip {
|
hash = "sha256-bvlzXRAdPvz8P49KENSw9gupQNaUm/+3eZZ1q7+fTsw=";
|
||||||
# url = "https://github.com/cull-os/helix/releases/download/ci-release-25.01.1/helix-ci-release-25.01.1-source.tar.xz";
|
stripRoot = false;
|
||||||
# hash = "sha256-bvlzXRAdPvz8P49KENSw9gupQNaUm/+3eZZ1q7+fTsw=";
|
};
|
||||||
# stripRoot = false;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# # TODO: Delete this as this was fixed on latest unstable.
|
|
||||||
# preVersionCheck = "";
|
|
||||||
|
|
||||||
# cargoDeps = super.helix.cargoDeps.overrideAttrs (_: {
|
|
||||||
# inherit (self.helix) src;
|
|
||||||
# outputHash = "sha256-O5ECrKyF9x5r7w9wMIqbYYuGFIeUaRgtzDfYK9dFjp4=";
|
|
||||||
# });
|
|
||||||
# });
|
|
||||||
# })];
|
|
||||||
|
|
||||||
|
cargoDeps = self.rustPlatform.fetchCargoVendor {
|
||||||
|
inherit (self.helix) src;
|
||||||
|
hash = "sha256-soOnSRvWO7OzxYENFUBGmgSAk1Oy9Av+wDDLKkcuIbs=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
})];
|
||||||
|
|
||||||
home-manager.sharedModules = [{
|
home-manager.sharedModules = [{
|
||||||
programs.nushell.configFile.text = mkIf (config.isDesktop && config.isLinux) <| mkAfter ''
|
programs.nushell.configFile.text = mkIf (config.isDesktop && config.isLinux) <| mkAfter ''
|
||||||
|
|
|
@ -26,21 +26,35 @@ in {
|
||||||
|
|
||||||
environment.variables.STARSHIP_LOG = "error";
|
environment.variables.STARSHIP_LOG = "error";
|
||||||
|
|
||||||
# nixpkgs.overlays = [(self: super: {
|
nixpkgs.overlays = [(self: super: {
|
||||||
# starship = super.starship.overrideAttrs (old: {
|
zoxide = super.zoxide.overrideAttrs (old: {
|
||||||
# src = self.fetchFromGitHub {
|
src = self.fetchFromGitHub {
|
||||||
# owner = "poliorcetics";
|
owner = "Bahex";
|
||||||
# repo = "starship";
|
repo = "zoxide";
|
||||||
# rev = "19926e1e0aa25eddf63f93ba270d60eef023338f";
|
rev = "0450775af9b1430460967ba8fb5aa434f95c4bc4";
|
||||||
# hash = "sha256-mi2O8JzXNLIF0/GuXVyf27JVV7d6zoskIjB29r5fPso=";
|
hash = "sha256-WhACxJMuhI9HGohcwg+ztZpQCVUZ4uibIQqGfJEEp/Y=";
|
||||||
# };
|
};
|
||||||
|
|
||||||
# cargoDeps = super.starship.cargoDeps.overrideAttrs (_: {
|
cargoDeps = self.rustPlatform.fetchCargoVendor {
|
||||||
# inherit (self.starship) src;
|
inherit (self.zoxide) src;
|
||||||
# outputHash = "sha256-3NJV+hsgX3H8pycso0gCdzxJg8SgVwGMbIoHDDRZBvY=";
|
hash = "sha256-v3tcQaEXfGyt1j2fShvxxrA9Xc90AWxEzEUT09cQ+is=";
|
||||||
# });
|
};
|
||||||
# });
|
});
|
||||||
# })];
|
|
||||||
|
starship = super.starship.overrideAttrs (old: {
|
||||||
|
src = self.fetchFromGitHub {
|
||||||
|
owner = "poliorcetics";
|
||||||
|
repo = "starship";
|
||||||
|
rev = "19926e1e0aa25eddf63f93ba270d60eef023338f";
|
||||||
|
hash = "sha256-mi2O8JzXNLIF0/GuXVyf27JVV7d6zoskIjB29r5fPso=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoDeps = self.rustPlatform.fetchCargoVendor {
|
||||||
|
inherit (self.starship) src;
|
||||||
|
hash = "sha256-EvslXwa4xGrrWLTqJlj/+iviBibPY0lRKcErNpb1FFo=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
})];
|
||||||
|
|
||||||
home-manager.sharedModules = [(homeArgs: let
|
home-manager.sharedModules = [(homeArgs: let
|
||||||
homeConfig = homeArgs.config;
|
homeConfig = homeArgs.config;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue