tangled
alpha
login
or
join now
foxgirl.engineering
/
gleam2nix
3
fork
atom
tools for building gleam projects with nix
3
fork
atom
overview
issues
pulls
pipelines
buildGleam: adapt to gleam2nix changes
foxgirl.engineering
5 months ago
7b96ec82
80746263
verified
This commit was signed with the committer's
known signature
.
foxgirl.engineering
SSH Key Fingerprint:
SHA256:zgspAKSFKA6vB30vPBY6QSa/osCDgrr8YASW+mNz13M=
+4
-6
1 changed file
expand all
collapse all
unified
split
nix
build-gleam.nix
+4
-6
nix/build-gleam.nix
···
54
54
configurePhase = ''
55
55
runHook preConfigure
56
56
57
57
-
mkdir lib
58
58
-
${lib.concatMapStringsSep "\n" (package: "ln -s ${package}/lib/erlang/lib/* lib/") beamDeps}
57
57
+
mkdir deps
58
58
+
${lib.concatMapStringsSep "\n" (package: "ln -s ${package}/lib/erlang/lib/* deps/") beamDeps}
59
59
60
60
runHook postConfigure
61
61
'';
···
63
63
buildPhase = ''
64
64
runHook preBuild
65
65
66
66
-
gleam compile-package --target erlang --package . --lib lib --out build
66
66
+
gleam compile-package --target erlang --package . --lib deps --out build
67
67
68
68
-
gleam2nix gen-app -n ${name} -v ${version} ${
69
69
-
lib.concatMapStringsSep " " (dep: "-d ${dep.otpApplication}") beamDeps
70
70
-
} build/ebin
68
68
+
gleam2nix appspec build/ebin ${lib.concatMapStringsSep " " (dep: dep.otpApplication) beamDeps}
71
69
72
70
runHook postBuild
73
71
'';