-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathflake.nix
More file actions
36 lines (35 loc) · 1.18 KB
/
flake.nix
File metadata and controls
36 lines (35 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
pnpm2nix = {
url = "github:FliegendeWurst/pnpm2nix-nzbr";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
};
outputs = { self, nixpkgs, flake-utils, pnpm2nix, ... }:
flake-utils.lib.eachDefaultSystem (system: let
# Initialize nixpkgs
pkgs = nixpkgs.legacyPackages.${system};
inherit (pkgs) lib;
in {
packages = {
default = self.packages.${system}.website;
website = pkgs.callPackage ./nix/package.nix {
inherit (pnpm2nix.packages.${system}) mkPnpmPackage;
};
};
devShells.default = pkgs.mkShellNoCC {
# Add all build-time dependencies to the environment
packages = [
pkgs.nodejs
pkgs.corepack
];
};
}) // {
hydraJobs.build = self.packages.x86_64-linux.website;
};
}