mirror of
https://github.com/youwen5/site.git
synced 2024-11-28 10:53:50 -08:00
25 lines
564 B
Nix
25 lines
564 B
Nix
|
{
|
||
|
description = "Flake for building pnpm project";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, flake-utils }:
|
||
|
flake-utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||
|
in {
|
||
|
defaultPackage = pkgs.callPackage ./default.nix {};
|
||
|
|
||
|
devShell = pkgs.mkShell {
|
||
|
buildInputs = [
|
||
|
pkgs.nodejs
|
||
|
pkgs.nodePackages.pnpm
|
||
|
];
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
}
|