Skip to content

Commit ebf4944

Browse files
Update flake to latest (#693)
1 parent bbc16fb commit ebf4944

File tree

8 files changed

+945
-771
lines changed

8 files changed

+945
-771
lines changed

app/default.nix

+37-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,37 @@
1-
{ makeWrapper, lib, stdenv, purix, purs-backend-es, esbuild, writeText, nodejs
2-
, compilers, purs-versions, dhall, dhall-json, git, git-lfs, licensee, coreutils
3-
, gzip, gnutar
4-
# from the registry at the top level
5-
, spago-lock, package-lock }:
1+
{
2+
makeWrapper,
3+
lib,
4+
stdenv,
5+
purix,
6+
purs-backend-es,
7+
esbuild,
8+
writeText,
9+
nodejs,
10+
compilers,
11+
purs-versions,
12+
dhall,
13+
dhall-json,
14+
git,
15+
git-lfs,
16+
licensee,
17+
coreutils,
18+
gzip,
19+
gnutar,
20+
# from the registry at the top level
21+
spago-lock,
22+
package-lock,
23+
}:
624
let
725
# Since both the importer and the server share the same build process, we
826
# don't need to build them twice separately and can share an optimized output
927
# directory.
1028
shared = stdenv.mkDerivation {
1129
name = "registry-app-shared";
1230
src = ./.;
13-
phases = [ "buildPhase" "installPhase" ];
31+
phases = [
32+
"buildPhase"
33+
"installPhase"
34+
];
1435
nativeBuildInputs = [ purs-backend-es ];
1536
buildPhase = ''
1637
ln -s ${package-lock}/js/node_modules .
@@ -23,12 +44,16 @@ let
2344
mv output-es $out/output
2445
'';
2546
};
26-
in {
47+
in
48+
{
2749
server = stdenv.mkDerivation rec {
2850
name = "registry-server";
2951
src = ./.;
3052
database = ../db;
31-
nativeBuildInputs = [ esbuild makeWrapper ];
53+
nativeBuildInputs = [
54+
esbuild
55+
makeWrapper
56+
];
3257
buildInputs = [ nodejs ];
3358
entrypoint = writeText "entrypoint.js" ''
3459
import { main } from "./output/Registry.App.Server";
@@ -77,7 +102,10 @@ in {
77102
github-importer = stdenv.mkDerivation rec {
78103
name = "registry-github-importer";
79104
src = ./.;
80-
nativeBuildInputs = [ esbuild makeWrapper ];
105+
nativeBuildInputs = [
106+
esbuild
107+
makeWrapper
108+
];
81109
buildInputs = [ nodejs ];
82110
entrypoint = writeText "entrypoint.js" ''
83111
import { main } from "./output/Registry.App.GitHubIssue";

flake.lock

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)