-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
33 lines (30 loc) · 980 Bytes
/
flake.nix
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
{
description = "A flake for qunitx npm package";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.napalm.url = "github:nix-community/napalm";
inputs.napalm.inputs.nixpkgs.follows = "nixpkgs";
outputs = { self, nixpkgs, napalm }:
let
system = "x86_64-linux";
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
pkgs = nixpkgs.legacyPackages."${system}";
in {
packages = forAllSystems (system: rec {
inherit system;
default = napalm.legacyPackages."${system}".buildPackage ./. {
nodejs = pkgs.nodejs_20;
PUPPETEER_SKIP_DOWNLOAD=1;
};
});
devShells = forAllSystems (system: rec {
inherit system;
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
deno
nodejs_20
];
};
});
};
}