This repository was archived by the owner on Jan 27, 2023. It is now read-only.
forked from purescript-contrib/purescript-affjax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
62 lines (61 loc) · 1.63 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
inputs =
{
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
purs-nix.url = "github:LovelaceAcademy/purs-nix";
utils.url = "github:ursi/flake-utils";
npmlock2nix.url = "github:nix-community/npmlock2nix";
npmlock2nix.flake = false;
};
outputs = { utils, npmlock2nix, ... }@inputs:
utils.apply-systems
{
inherit inputs;
# restricted by npmlock2nix, see nix-community/npmlock2nix#159
systems = [ "x86_64-linux" ];
overlays = [
(final: prev:
{ npmlock2nix = import npmlock2nix { pkgs = prev; }; }
)
];
}
({ purs-nix, pkgs, ... }:
let
node_modules = pkgs.npmlock2nix.node_modules
{
src = ./.;
} + /node_modules;
package =
with purs-nix.ps-pkgs;
{
version = "12.0.0";
dependencies =
[
aff
argonaut-core
arraybuffer-types
foreign
form-urlencoded
http-methods
integers
math
media-types
nullable
refs
unsafe-coerce
web-xhr
];
foreign."Affjax" = { inherit node_modules; };
};
in
{
packages.default =
purs-nix.build
{
name = "lovelaceAcademy.affjax";
src.path = ./.;
info = package;
};
}
);
}