initial commit

Changed files
+176
crates
star-studio
+2
Cargo.toml
···
+
[workspace]
+
members = ["crates/*"]
+7
crates/star-studio/Cargo.toml
···
+
[package]
+
name = "star-studio"
+
version = "0.1.0"
+
edition = "2024"
+
description = "Editor for papermario-dx mods"
+
+
[dependencies]
+3
crates/star-studio/src/main.rs
···
+
fn main() {
+
println!("Hello, world!");
+
}
+120
flake.lock
···
+
{
+
"nodes": {
+
"crane": {
+
"locked": {
+
"lastModified": 1763511871,
+
"narHash": "sha256-KKZWi+ij7oT0Ag8yC6MQkzfHGcytyjMJDD+47ZV1YNU=",
+
"owner": "ipetkov",
+
"repo": "crane",
+
"rev": "099f9014bc8d0cd6e445470ea1df0fd691d5a548",
+
"type": "github"
+
},
+
"original": {
+
"owner": "ipetkov",
+
"repo": "crane",
+
"type": "github"
+
}
+
},
+
"flake-parts": {
+
"inputs": {
+
"nixpkgs-lib": "nixpkgs-lib"
+
},
+
"locked": {
+
"lastModified": 1763759067,
+
"narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
+
"owner": "hercules-ci",
+
"repo": "flake-parts",
+
"rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
+
"type": "github"
+
},
+
"original": {
+
"owner": "hercules-ci",
+
"repo": "flake-parts",
+
"type": "github"
+
}
+
},
+
"nixpkgs": {
+
"locked": {
+
"lastModified": 1764242076,
+
"narHash": "sha256-sKoIWfnijJ0+9e4wRvIgm/HgE27bzwQxcEmo2J/gNpI=",
+
"owner": "NixOS",
+
"repo": "nixpkgs",
+
"rev": "2fad6eac6077f03fe109c4d4eb171cf96791faa4",
+
"type": "github"
+
},
+
"original": {
+
"owner": "NixOS",
+
"ref": "nixos-unstable",
+
"repo": "nixpkgs",
+
"type": "github"
+
}
+
},
+
"nixpkgs-lib": {
+
"locked": {
+
"lastModified": 1761765539,
+
"narHash": "sha256-b0yj6kfvO8ApcSE+QmA6mUfu8IYG6/uU28OFn4PaC8M=",
+
"owner": "nix-community",
+
"repo": "nixpkgs.lib",
+
"rev": "719359f4562934ae99f5443f20aa06c2ffff91fc",
+
"type": "github"
+
},
+
"original": {
+
"owner": "nix-community",
+
"repo": "nixpkgs.lib",
+
"type": "github"
+
}
+
},
+
"root": {
+
"inputs": {
+
"flake-parts": "flake-parts",
+
"nixpkgs": "nixpkgs",
+
"rust-flake": "rust-flake"
+
}
+
},
+
"rust-flake": {
+
"inputs": {
+
"crane": "crane",
+
"nixpkgs": [
+
"nixpkgs"
+
],
+
"rust-overlay": "rust-overlay"
+
},
+
"locked": {
+
"lastModified": 1763904071,
+
"narHash": "sha256-lVjgLMk5Hk3RkbTEKOn3VG/cN5YTfvDcm6aEj+30LLs=",
+
"owner": "juspay",
+
"repo": "rust-flake",
+
"rev": "900689a4a3e625d3ac73da3209d9c33774f7b193",
+
"type": "github"
+
},
+
"original": {
+
"owner": "juspay",
+
"repo": "rust-flake",
+
"type": "github"
+
}
+
},
+
"rust-overlay": {
+
"inputs": {
+
"nixpkgs": [
+
"rust-flake",
+
"nixpkgs"
+
]
+
},
+
"locked": {
+
"lastModified": 1763778964,
+
"narHash": "sha256-qeOBcixYtZ4yUsBWO6kcjr7ylkrBib4kGDImHNKba9I=",
+
"owner": "oxalica",
+
"repo": "rust-overlay",
+
"rev": "7f3aa46dfa230ec2a4ca9281186a24771650ccd1",
+
"type": "github"
+
},
+
"original": {
+
"owner": "oxalica",
+
"repo": "rust-overlay",
+
"type": "github"
+
}
+
}
+
},
+
"root": "root",
+
"version": 7
+
}
+42
flake.nix
···
+
{
+
inputs = {
+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+
flake-parts.url = "github:hercules-ci/flake-parts";
+
rust-flake.url = "github:juspay/rust-flake";
+
rust-flake.inputs.nixpkgs.follows = "nixpkgs";
+
};
+
+
outputs =
+
inputs@{
+
nixpkgs,
+
flake-parts,
+
rust-flake,
+
...
+
}:
+
flake-parts.lib.mkFlake { inherit inputs; } {
+
imports = [
+
rust-flake.flakeModules.default
+
rust-flake.flakeModules.nixpkgs
+
];
+
systems = nixpkgs.lib.systems.flakeExposed;
+
perSystem =
+
{ self', pkgs, ... }:
+
let
+
buildInputs = with pkgs; [
+
];
+
nativeBuildInputs = with pkgs; [
+
];
+
in
+
{
+
rust-project.crates.star-studio.crane.args = {
+
inherit buildInputs nativeBuildInputs;
+
};
+
devShells.default = self'.devShells.rust.overrideAttrs (old: {
+
buildInputs = old.buildInputs ++ buildInputs;
+
nativeBuildInputs = old.nativeBuildInputs ++ nativeBuildInputs;
+
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (buildInputs ++ nativeBuildInputs);
+
});
+
packages.default = self'.packages.star-studio;
+
};
+
};
+
}
+2
rust-toolchain.toml
···
+
[toolchain]
+
channel = "stable"