From d7a17e83856569b3ea20e9a9c58dcdbeebafbd18 Mon Sep 17 00:00:00 2001 From: hyperpolymath <6759885+hyperpolymath@users.noreply.github.com> Date: Wed, 24 Jun 2026 12:41:49 +0100 Subject: [PATCH] chore(nix->guix): remove flake.nix (Guix-only estate policy) --- flake.lock | 82 ---------------------------- flake.nix | 156 ----------------------------------------------------- 2 files changed, 238 deletions(-) delete mode 100644 flake.lock delete mode 100644 flake.nix diff --git a/flake.lock b/flake.lock deleted file mode 100644 index d8fe172..0000000 --- a/flake.lock +++ /dev/null @@ -1,82 +0,0 @@ -{ - "nodes": { - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1776169885, - "narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs", - "rust-overlay": "rust-overlay" - } - }, - "rust-overlay": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1776395632, - "narHash": "sha256-Mi1uF5f2FsdBIvy+v7MtsqxD3Xjhd0ARJdwoqqqPtJo=", - "owner": "oxalica", - "repo": "rust-overlay", - "rev": "8087ff1f47fff983a1fba70fa88b759f2fd8ae97", - "type": "github" - }, - "original": { - "owner": "oxalica", - "repo": "rust-overlay", - "type": "github" - } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index becd84e..0000000 --- a/flake.nix +++ /dev/null @@ -1,156 +0,0 @@ -# SPDX-License-Identifier: MPL-2.0 -{ - description = "JtV - Harvard Architecture language making code injection grammatically impossible"; - - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - flake-utils.url = "github:numtide/flake-utils"; - rust-overlay = { - url = "github:oxalica/rust-overlay"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - }; - - outputs = { self, nixpkgs, flake-utils, rust-overlay }: - flake-utils.lib.eachDefaultSystem (system: - let - overlays = [ (import rust-overlay) ]; - pkgs = import nixpkgs { - inherit system overlays; - }; - - rustToolchain = pkgs.rust-bin.stable.latest.default.override { - extensions = [ "rust-src" "rust-analyzer" ]; - targets = [ "wasm32-unknown-unknown" ]; - }; - - nativeBuildInputs = with pkgs; [ - rustToolchain - pkg-config - just - ]; - - buildInputs = with pkgs; [ - openssl - ] ++ lib.optionals stdenv.isDarwin [ - darwin.apple_sdk.frameworks.Security - darwin.apple_sdk.frameworks.SystemConfiguration - ]; - - in - { - packages = { - default = self.packages.${system}.jtv; - - jtv = pkgs.rustPlatform.buildRustPackage { - pname = "jtv"; - version = "0.1.0"; - - src = ./.; - - cargoLock = { - lockFile = ./Cargo.lock; - }; - - inherit nativeBuildInputs buildInputs; - - meta = with pkgs.lib; { - description = "Harvard Architecture language making code injection grammatically impossible"; - homepage = "https://github.com/hyperpolymath/jtv"; - license = with licenses; [ gpl3Plus ]; - maintainers = [ ]; - }; - }; - - # WASM build - jtv-wasm = pkgs.stdenv.mkDerivation { - pname = "jtv-wasm"; - version = "0.1.0"; - - src = ./.; - - nativeBuildInputs = with pkgs; [ - rustToolchain - wasm-pack - binaryen - ]; - - buildPhase = '' - wasm-pack build --target web --out-dir $out/pkg crates/jtv-core - ''; - - installPhase = '' - mkdir -p $out - cp -r pkg $out/ - ''; - }; - }; - - devShells.default = pkgs.mkShell { - inherit buildInputs; - - nativeBuildInputs = nativeBuildInputs ++ (with pkgs; [ - # Development tools - rust-analyzer - cargo-watch - cargo-edit - cargo-audit - - # WASM tooling - wasm-pack - wasm-bindgen-cli - binaryen - - # Documentation - mdbook - - # Formatting & Linting - rustfmt - clippy - - # Testing - cargo-nextest - ]); - - shellHook = '' - echo "🐍 JtV Development Environment" - echo "" - echo "Available commands:" - echo " just --list # Show all build commands" - echo " just build # Build all packages" - echo " just test # Run tests" - echo " just build-wasm # Compile to WebAssembly" - echo " cargo run --bin jtv -- --help # Run CLI" - echo "" - echo "Rust version: $(rustc --version)" - ''; - - RUST_SRC_PATH = "${rustToolchain}/lib/rustlib/src/rust/library"; - }; - - # CI/CD support - checks = { - build = self.packages.${system}.jtv; - - test = pkgs.runCommand "jtv-test" { - nativeBuildInputs = nativeBuildInputs ++ buildInputs; - } '' - cd ${./.} - cargo test --workspace - touch $out - ''; - - clippy = pkgs.runCommand "jtv-clippy" { - nativeBuildInputs = nativeBuildInputs ++ buildInputs; - } '' - cd ${./.} - cargo clippy --workspace -- -D warnings - touch $out - ''; - }; - - # Formatter - formatter = pkgs.nixpkgs-fmt; - } - ); -}