{ description = "A very basic flake"; inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; flake-parts.url = "github:hercules-ci/flake-parts"; # crane.url = "github:ipetkov/crane"; # flake-utils.url = "github:numtide/flake-utils"; # rust-overlay = { # url = "github:oxalica/rust-overlay"; # inputs.nixpkgs.follows = "nixpkgs"; # }; }; outputs = { flake-parts, ... }@inputs: flake-parts.lib.mkFlake { inherit inputs; } { flake.flakeModules.default = ./nix/flakeModule.nix; }; # outputs = # { # nixpkgs, # crane, # flake-utils, # rust-overlay, # ... # }: # flake-utils.lib.eachDefaultSystem ( # system: # let # pkgs = import nixpkgs { # inherit system; # overlays = [ # (import rust-overlay) # ]; # }; # inherit (pkgs) lib; # # craneLib = (crane.mkLib pkgs).overrideToolchain ( # p: # p.rust-bin.nightly.latest.default.override { # extensions = [ # "rustc-codegen-cranelift-preview" # "rust-analyzer" # "rust-src" # ]; # } # ); # src = craneLib.cleanCargoSource ./.; # commonArgs = { # inherit src; # strictDeps = true; # }; # cargoArtifacts = craneLib.buildDepsOnly commonArgs; # individualCrateArgs = commonArgs // { # inherit cargoArtifacts; # inherit (craneLib.crateNameFromCargoToml { inherit src; }) version; # }; # # fileSetForCrate = # crate: # lib.fileset.toSource { # root = ./.; # fileset = lib.fileset.unions [ # ./Cargo.toml # ./Cargo.lock # ]; # }; # server = craneLib.buildPackage ( # individualCrateArgs # // { # } # ); # in # { # devShells.default = craneLib.devShell { # packages = with pkgs; [ # mold # llvmPackages.clang # llvmPackages.lld # sea-orm-cli # watchexec # pnpm # ]; # }; # } # ); }