Created
February 7, 2018 21:20
-
-
Save mpickering/c6292c1d4f645759ed544b2f336c0adb to your computer and use it in GitHub Desktop.
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
{ pkgs ? import <nixpkgs> {} | |
}: | |
let | |
si-droid-csv = pkgs.haskell.packages.ghcjsHEAD.callPackage ./si-droid-csv.nix {}; | |
miso = pkgs.haskell.packages.ghcjsHEAD.callHackage "miso" "0.12.0.0" {}; | |
app = pkgs.haskell.packages.ghcjsHEAD.callPackage ./app.nix { | |
si-droid-csv = si-droid-csv; miso = miso; | |
}; | |
in | |
pkgs.runCommand "app" { inherit app; } '' | |
mkdir -p $out | |
cp ${app.src}/static/index.html $out/index.html | |
#cp -r ${app}/bin/app.jsexe/* $out | |
# cp -r ${app.src}/static/* $out | |
'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment