Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

describe and change nix #19

Open
1 of 3 tasks
Tracked by #17 ...
aleeusgr opened this issue Dec 26, 2023 · 5 comments
Open
1 of 3 tasks
Tracked by #17 ...

describe and change nix #19

aleeusgr opened this issue Dec 26, 2023 · 5 comments

Comments

@aleeusgr
Copy link
Owner

aleeusgr commented Dec 26, 2023

GitHub Action is broken:

error: attribute 'defaultPackage' in selection path 'defaultPackage.x86_64-linux' not found
  • check .github in the template
  • add
attribute  
'packages.x86_64-linux.default'
'defaultPackage.x86_64-linux'
  • integrate nvim and rust-analyzer
@aleeusgr

This comment was marked as outdated.

@aleeusgr aleeusgr changed the title fix CI fix nix Dec 26, 2023
@aleeusgr aleeusgr changed the title fix nix add flake attribute Dec 26, 2023
@aleeusgr aleeusgr mentioned this issue Dec 26, 2023
8 tasks
@aleeusgr aleeusgr changed the title add flake attribute fix CI errors Dec 26, 2023
@aleeusgr
Copy link
Owner Author

@aleeusgr aleeusgr added this to the 3. Project Execution milestone Dec 27, 2023
@aleeusgr aleeusgr changed the title fix CI errors fix CI Dec 30, 2023
@aleeusgr aleeusgr changed the title fix CI change nix Jan 1, 2024
@aleeusgr
Copy link
Owner Author

aleeusgr commented Jan 1, 2024

Improve DevEx:

  • try other nix+rust devex, see if you can get better suggestions from nvim.
  • add nvim + rust-analyzer
    devShells.default = pkgs.mkShell {
    name = "efected-coto-emmory";
    nativeBuildInputs = with pkgs;
    [
    # The ordering of these two items is important. For nightly rustfmt to be used instead of
    # the rustfmt provided by `rust-toolchain`, it must appear first in the list. This is
    # because native build inputs are added to $PATH in the order they're listed here.
    nightly-rustfmt
    rust-toolchain
    pre-commit
    protobuf
    direnv
    self.packages.${system}.irust
    ]
    ++ format-pkgs
    ++ cargo-installs
    ++ lib.optionals stdenv.isDarwin [
    darwin.apple_sdk.frameworks.Security
    darwin.apple_sdk.frameworks.CoreFoundation
    darwin.apple_sdk.frameworks.Foundation
    ];
    shellHook = ''
    [ -e .git/hooks/pre-commit ] || pre-commit install --install-hooks && pre-commit install --hook-type commit-msg
    '';
    };

@aleeusgr aleeusgr changed the title change nix describe and change nix Jan 1, 2024
@aleeusgr
Copy link
Owner Author

aleeusgr commented Jan 1, 2024

build a rust package from github:

packages.irust = pkgs.rustPlatform.buildRustPackage rec {
pname = "irust";
version = "1.70.0";
src = pkgs.fetchFromGitHub {
owner = "sigmaSd";
repo = "IRust";
rev = "v${version}";
sha256 = "sha256-chZKesbmvGHXwhnJRZbXyX7B8OwJL9dJh0O1Axz/n2E=";
};
doCheck = false;
cargoSha256 = "sha256-FmsD3ajMqpPrTkXCX2anC+cmm0a2xuP+3FHqzj56Ma4=";
};

@aleeusgr
Copy link
Owner Author

aleeusgr commented Jan 1, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant