Files
methylphenidate/flake.nix

46 lines
1.3 KiB
Nix
Raw Normal View History

{
description = "C++/TypeScript Dev environment for methylphenidate";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = with pkgs; [
2025-10-22 06:13:42 -04:00
# C++ deps
sioclient
ftxui
libgccjit
meson
# TypeScript deps
bun
2025-10-22 06:13:42 -04:00
nodejs_24
prisma
2025-10-22 06:32:42 -04:00
prisma-engines
2025-10-22 06:13:42 -04:00
openssl_3 # needed for prisma
# DB deps
ephemeralpg
postgresql
];
2025-10-22 06:32:42 -04:00
shellHook = with pkgs; ''
echo "Welcome to the methylphenidate dev environment!"
2025-10-22 06:13:42 -04:00
export NIX_LDFLAGS="''${NIX_LDFLAGS/-rpath $out\/lib /}"
2025-10-22 06:32:42 -04:00
export PRISMA_SCHEMA_ENGINE_BINARY="${prisma-engines}/bin/migration-engine"
export PRISMA_QUERY_ENGINE_BINARY="${prisma-engines}/bin/query-engine"
export PRISMA_QUERY_ENGINE_LIBRARY="${prisma-engines}/lib/libquery_engine.node"
export PRISMA_INTROSPECTION_ENGINE_BINARY="${prisma-engines}/bin/introspection-engine"
export PRISMA_FMT_BINARY="${prisma-engines}/bin/prisma-fmt"
export PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING="1";
'';
};
};
}