Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 1.17 KB

README.org

File metadata and controls

53 lines (44 loc) · 1.17 KB

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"
  ];
}