-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
39 lines (33 loc) · 1.19 KB
/
Copy pathflake.nix
File metadata and controls
39 lines (33 loc) · 1.19 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
37
38
39
{
description = "The GitHub integration plugin for Paseo, packaged for Nix";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
inherit (nixpkgs) lib;
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (pkgs: {
github-integration = pkgs.callPackage ./nix/plugin.nix { };
default = self.packages.${pkgs.stdenv.hostPlatform.system}.github-integration;
});
# The daemon reads the plugin straight from the store path, so a build is
# the whole check there is: nothing is compiled here, and the typecheck
# needs the npm dev tree, which lives with a clone rather than with this
# flake. `npm run typecheck` at the repository root is still the gate for
# a source change.
checks = forAllSystems (pkgs: {
github-integration = self.packages.${pkgs.stdenv.hostPlatform.system}.github-integration;
});
formatter = forAllSystems (pkgs: pkgs.nixfmt-tree);
};
}