48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs";
|
|
fenix.url = "github:nix-community/fenix";
|
|
prisma-engines.url = "github:prisma/prisma-engines?ref=4.11.0";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, fenix, prisma-engines }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [
|
|
fenix.overlays.default
|
|
(final: prev: {
|
|
prisma-engines = prisma-engines.packages.${system}.prisma-engines;
|
|
})
|
|
];
|
|
};
|
|
|
|
lib = pkgs.lib;
|
|
|
|
prisma-env =
|
|
import ./nix/prisma-env.nix { inherit (pkgs) prisma-engines; };
|
|
in rec {
|
|
devShell = pkgs.mkShell ({
|
|
packages = with pkgs; [
|
|
cargo-deny
|
|
cargo-edit
|
|
cargo-expand
|
|
cargo-flamegraph
|
|
cargo-watch
|
|
|
|
deno
|
|
mdbook
|
|
openssl
|
|
|
|
(python310.withPackages (p: with p; [ ipython numpy scipy sympy ]))
|
|
|
|
pkgs.fenix.minimal.cargo
|
|
pkgs.fenix.minimal.rustc
|
|
|
|
# Get the nightly version of rustfmt so we can wrap comments
|
|
pkgs.fenix.default.rustfmt
|
|
];
|
|
} // prisma-env);
|
|
});
|
|
}
|