Skip to content

Commit

Permalink
Update flake to latest (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashoneyman authored Jul 21, 2024
1 parent bbc16fb commit ebf4944
Show file tree
Hide file tree
Showing 8 changed files with 945 additions and 771 deletions.
46 changes: 37 additions & 9 deletions app/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
{ makeWrapper, lib, stdenv, purix, purs-backend-es, esbuild, writeText, nodejs
, compilers, purs-versions, dhall, dhall-json, git, git-lfs, licensee, coreutils
, gzip, gnutar
# from the registry at the top level
, spago-lock, package-lock }:
{
makeWrapper,
lib,
stdenv,
purix,
purs-backend-es,
esbuild,
writeText,
nodejs,
compilers,
purs-versions,
dhall,
dhall-json,
git,
git-lfs,
licensee,
coreutils,
gzip,
gnutar,
# from the registry at the top level
spago-lock,
package-lock,
}:
let
# Since both the importer and the server share the same build process, we
# don't need to build them twice separately and can share an optimized output
# directory.
shared = stdenv.mkDerivation {
name = "registry-app-shared";
src = ./.;
phases = [ "buildPhase" "installPhase" ];
phases = [
"buildPhase"
"installPhase"
];
nativeBuildInputs = [ purs-backend-es ];
buildPhase = ''
ln -s ${package-lock}/js/node_modules .
Expand All @@ -23,12 +44,16 @@ let
mv output-es $out/output
'';
};
in {
in
{
server = stdenv.mkDerivation rec {
name = "registry-server";
src = ./.;
database = ../db;
nativeBuildInputs = [ esbuild makeWrapper ];
nativeBuildInputs = [
esbuild
makeWrapper
];
buildInputs = [ nodejs ];
entrypoint = writeText "entrypoint.js" ''
import { main } from "./output/Registry.App.Server";
Expand Down Expand Up @@ -77,7 +102,10 @@ in {
github-importer = stdenv.mkDerivation rec {
name = "registry-github-importer";
src = ./.;
nativeBuildInputs = [ esbuild makeWrapper ];
nativeBuildInputs = [
esbuild
makeWrapper
];
buildInputs = [ nodejs ];
entrypoint = writeText "entrypoint.js" ''
import { main } from "./output/Registry.App.GitHubIssue";
Expand Down
20 changes: 10 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ebf4944

Please sign in to comment.