This commit is contained in:
mtgmonkey 2025-06-20 09:47:35 -04:00
commit 28a9a97bf5
6 changed files with 69 additions and 0 deletions

7
Cargo.lock generated Normal file
View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "rust-elaborator"
version = "0.1.0"

6
Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "rust_elaborator"
version = "0.1.0"
edition = "2024"
[dependencies]

26
flake.lock generated Normal file
View file

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1750134718,
"narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

12
flake.nix Normal file
View file

@ -0,0 +1,12 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = {nixpkgs, ...}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.${system}.default = pkgs.callPackage ./package.nix {};
# nixosModules.${system}.default = ./module.nix;
};
}

15
package.nix Normal file
View file

@ -0,0 +1,15 @@
{rustPlatform, ...}:
rustPlatform.buildRustPackage {
name = "rust_elaborator";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [];
buildInputs = [];
configurePhase = '''';
buildPhase = '''';
installPhase = '''';
meta = {
mainProgram = "rust_elaborator";
homepage = "https://mtgmonkey.net";
};
}

3
src/main.rs Normal file
View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}