mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 02:12:38 +01:00
34 lines
830 B
Nix
34 lines
830 B
Nix
|
{
|
||
|
description = "Spacebar client, written in React.";
|
||
|
|
||
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
|
||
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||
|
inputs.pnpm2nix.url = "github:TheArcaneBrony/pnpm2nix";
|
||
|
#inputs.pnpm2nix.url = "path:/home/root@Rory/git/spacebar/client/pnpm2nix";
|
||
|
inputs.pnpm2nix.flake = false;
|
||
|
|
||
|
outputs = { self, nixpkgs, flake-utils, pnpm2nix }:
|
||
|
flake-utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
pkgs = import nixpkgs {
|
||
|
inherit system;
|
||
|
};
|
||
|
_pnpm2nix = import pnpm2nix { pkgs = nixpkgs.legacyPackages.${system}; };
|
||
|
in rec {
|
||
|
packages.default = _pnpm2nix.mkPnpmPackage {
|
||
|
src = ./.;
|
||
|
buildInputs = with pkgs; [
|
||
|
|
||
|
];
|
||
|
};
|
||
|
devShell = pkgs.mkShell {
|
||
|
buildInputs = with pkgs; [
|
||
|
nodejs
|
||
|
nodePackages.pnpm
|
||
|
nodePackages.typescript
|
||
|
];
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
}
|