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

Linux #8

Open
Soliprem opened this issue Jan 6, 2025 · 1 comment
Open

Linux #8

Soliprem opened this issue Jan 6, 2025 · 1 comment

Comments

@Soliprem
Copy link

Soliprem commented Jan 6, 2025

Would this work under Linux if compiled in a Linux system? Is there an equivalent?

@Soliprem
Copy link
Author

Soliprem commented Jan 6, 2025

after compiling through a nix flake, I get

./modlist/tw3-modlist-manager
Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }

This is the flake

{
  description = "A simple Rust project";
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  };
  outputs = {
    self,
    nixpkgs,
  }: let
    system = "x86_64-linux";
    pkgs = import nixpkgs {inherit system;};
  in {
    devShell.${system} = pkgs.mkShell {
      buildInputs = with pkgs; [
        rustc
        cargo
      ];
    };
    packages.${system}.default = pkgs.rustPlatform.buildRustPackage {
      pname = "tw3-mod-manager";
      version = "0.1.0";
      src = ./.;
      buildInputs = with pkgs; [
        openssl
      ];

      nativeBuildInputs = with pkgs; [
        pkg-config
        openssl.dev
      ];
      RUSTC_BOOTSTRAP = 1;
      cargoLock = {
        lockFile = ./Cargo.lock;
      };
    };
  };
}

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