git.iko.soy/purestack-dev/todomvc
on master help sign in
Got nix build working
commit0bca6d2dfadd37c9816e7b979173504593958bff authoriko <mail@iko.soy> dateMon 23 Jun 2025, 12:08 (1 year ago) parentba699f1
3 files changed+66−2
.gitignore+1 flake.lock+53−1 flake.nix+12−1
.gitignore+1
@@ -10,3 +10,4 @@
1010/.spago
1111backend.js
1212frontend.js
13+result
flake.lock+53−1
@@ -49,6 +49,22 @@
4949 "type": "github"
5050 }
5151 },
52+ "package-sets": {
53+ "flake": false,
54+ "locked": {
55+ "lastModified": 1750577700,
56+ "narHash": "sha256-O2yPcwTqiOl/GcJSykwEfiy1EPKde4/EM3XuEvNWcO4=",
57+ "owner": "purescript",
58+ "repo": "package-sets",
59+ "rev": "9c76f35a27cc266b1f0fdbd151eb4a5859e30540",
60+ "type": "github"
61+ },
62+ "original": {
63+ "owner": "purescript",
64+ "repo": "package-sets",
65+ "type": "github"
66+ }
67+ },
5268 "purescript-overlay": {
5369 "inputs": {
5470 "flake-compat": "flake-compat",
@@ -71,11 +87,28 @@
7187 "type": "github"
7288 }
7389 },
90+ "registry": {
91+ "flake": false,
92+ "locked": {
93+ "lastModified": 1750577695,
94+ "narHash": "sha256-Jv4PUe54RtwKwQaxr1ABQu2o1/+nkqYcV88CAB9zAhQ=",
95+ "owner": "purescript",
96+ "repo": "registry",
97+ "rev": "45fc747d4d0f006b19775f9013642ed8c62d5465",
98+ "type": "github"
99+ },
100+ "original": {
101+ "owner": "purescript",
102+ "repo": "registry",
103+ "type": "github"
104+ }
105+ },
74106 "root": {
75107 "inputs": {
76108 "flake-utils": "flake-utils",
77109 "nixpkgs": "nixpkgs",
78− "purescript-overlay": "purescript-overlay"
110+ "purescript-overlay": "purescript-overlay",
111+ "spago-nix": "spago-nix"
79112 }
80113 },
81114 "slimlock": {
@@ -99,6 +132,25 @@
99132 "type": "github"
100133 }
101134 },
135+ "spago-nix": {
136+ "inputs": {
137+ "package-sets": "package-sets",
138+ "registry": "registry"
139+ },
140+ "locked": {
141+ "lastModified": 1750694836,
142+ "narHash": "sha256-QxWjqgH4NapAYOCf7DG1t4G0aNO6sYgXZj+r8RAaIPA=",
143+ "owner": "purestack-dev",
144+ "repo": "spago-nix",
145+ "rev": "e0c303a269fee603809f458dfb62db974d573968",
146+ "type": "github"
147+ },
148+ "original": {
149+ "owner": "purestack-dev",
150+ "repo": "spago-nix",
151+ "type": "github"
152+ }
153+ },
102154 "systems": {
103155 "locked": {
104156 "lastModified": 1681028828,
flake.nix+12−1
@@ -6,8 +6,9 @@
66 url = "github:thomashoneyman/purescript-overlay";
77 inputs.nixpkgs.follows = "nixpkgs";
88 };
9+ spago-nix.url = "github:purestack-dev/spago-nix";
910 };
10− outputs = { self, nixpkgs, flake-utils, purescript-overlay }:
11+ outputs = { self, nixpkgs, flake-utils, purescript-overlay, spago-nix }:
1112 let supportedSystems = flake-utils.lib.defaultSystems;
1213 in flake-utils.lib.eachSystem supportedSystems (system:
1314 let
@@ -32,6 +33,16 @@
3233 };
3334 });
3435 in {
36+ packages = {
37+ frontend = spago-nix.lib.spago { inherit pkgs; } {
38+ src = ./.;
39+ main = "Frontend";
40+ };
41+ backend = spago-nix.lib.spago { inherit pkgs; } {
42+ src = ./.;
43+ main = "Backend";
44+ };
45+ };
3546 apps = {
3647 dev = {
3748 type = "app";