Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76f06ea
commit 7a9357f
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
elm-stuff | ||
index.html | ||
result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ sources ? import ./nix/sources.nix { }, nixpkgs ? import sources.nixpkgs { } | ||
}: | ||
let gitignore = nixpkgs.callPackage sources.gitignore { }; | ||
in nixpkgs.stdenv.mkDerivation { | ||
name = "bad-datalog"; | ||
|
||
src = gitignore.gitignoreSource ./.; | ||
buildInputs = [ nixpkgs.elmPackages.elm ]; | ||
|
||
buildPhase = nixpkgs.elmPackages.fetchElmDeps { | ||
elmPackages = import ./nix/elm-srcs.nix; | ||
elmVersion = "0.19.1"; | ||
registryDat = ./nix/registry.dat; | ||
}; | ||
|
||
# it's a little weird that elm2nix says it's fine to build in the install | ||
# phase, but who am I to judge? | ||
installPhase = '' | ||
mkdir -p $out/share/bad-datalog | ||
( | ||
cd sample-app | ||
elm make src/Main.elm --output $out/share/bad-datalog/index.html | ||
) | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters