Skip to content

pimeys/nixos-prisma

Repository files navigation

Fresh Prisma packages for NixOS

Currently heavily under construction, and only the following packages are available:

  • @prisma/language-server for the latest stable Prisma language server
  • @prisma/language-server-dev for the latest development Prisma language server
  • @prisma/language-server-integration for a custom integration version of Prisma language server

Using the overlay

Add an input to your flake inputs:

{
  inputs = {
    prisma = {
      url = "github:pimeys/nixos-prisma";
    };
  };
}

Then in the outputs, add the overlay to your configuration:

{
  outputs = inputs @ { nixpkgs, prisma, ... }:
    let
      common = { pkgs, config, ... }: {
        nixpkgs.overlays = [
          prisma.overlay
        ];
      };
    in {
      nixosConfigurations = {
        localhost = nixpkgs.lib.nixosSystem {
          system = "x86_64-linux";
          modules = [ ./localhost/configuration.nix ] ++ common;
        };
      };
  };
}

The packages can be added from the `pkgs` collection:

{
  environment.systemPackages = with pkgs; [
    prismaPackages."@prisma/language-server"
  ];
}

About

Nix derivations of common Prisma tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published