Something went wrong. Try again.
PDS software with bells & whistles you didn’t even know you needed. will move this to its own account when ready.
Something went wrong. Try again.
tranquil-pds shell.nix
1.2 kB · 64 lines
Nix
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, mkShell, callPackage, rustPlatform,
# repo tooling just, podman, podman-compose,
# rust tooling clippy, rustfmt, rust-analyzer, sqlx-cli, mold,
# frontend tooling deno, svelte-language-server, typescript-language-server,}: let defaultPackage = callPackage ./default.nix { };in mkShell { inputsFrom = [ defaultPackage ];
env = { RUST_SRC_PATH = rustPlatform.rustLibSrc; } # isabel if this is like a horrible way to do this forgive me for my sins ig # if you can make this better go do it and tell me how or something :3 // builtins.fromTOML ( (s: if s == "" then s else s + "\"") (lib.replaceStrings [ "\n" "=" "\"" ] [ "\"\n" "=\"" "\\\"" ] (lib.concatStringsSep "\n" (lib.filter (line: !lib.hasPrefix "#" line && line != "") (lib.splitString "\n" (if lib.pathIsRegularFile ./.env then (lib.readFile ./.env) else "" ) ) ) ) ) );
packages = [ just podman podman-compose
clippy rustfmt rust-analyzer sqlx-cli mold deno svelte-language-server typescript-language-server ];}