Skip to content

Commit

Permalink
fix(build): let elm-review succeed in an offline sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
r-k-b committed Sep 15, 2024
1 parent 9af1242 commit 95e61ce
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 4 additions & 4 deletions flake.lock

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

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
};
mkElmDerivation = {
url =
"github:r-k-b/mkElmDerivation?rev=05d9281548df8fbd62db07e2ed9bcc0759af23a0";
"github:r-k-b/mkElmDerivation?rev=ff580f55d0aad443d6f8fde2ab308275ce2fc3a7";
inputs.nixpkgs.follows = "nixpkgs";
};
};
Expand Down
10 changes: 8 additions & 2 deletions nix/elmReviewed.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{ elm-review-tool, elmPackages, lib, pkgs, stdenv, reviewSrc }:
let elmVersion = "0.19.1";
let
elmVersion = "0.19.1";

mainApp = builtins.fromJSON (builtins.readFile ../elm.json);

in stdenv.mkDerivation {
name = "elm-reviewed";
Expand All @@ -13,7 +16,10 @@ in stdenv.mkDerivation {
];

installPhase = ''
${pkgs.makeDotElmDirectoryCmd { elmJson = ../review/elm.json; }}
${pkgs.makeDotElmDirectoryCmd {
elmJson = ../review/elm.json;
extraDeps = mainApp.dependencies.direct // mainApp.dependencies.indirect;
}}
set -e
mkdir -p .elm/elm-review/2.12.0
ln -s ../../${elmVersion} .elm/elm-review/2.12.0/${elmVersion}
Expand Down

0 comments on commit 95e61ce

Please sign in to comment.