git.iko.soy/typeable/octopod
on 1.2.1 help sign in
typeable/octopod/default.nix
23 lines 694 B history raw
1{ sources ? import ./nix/sources.nix
2, haskellNix ? import sources.haskellNix { }
3, pkgs ? import haskellNix.sources.nixpkgs-2105 haskellNix.nixpkgsArgs
4}:
5let
6 hsPkgs = pkgs.haskell-nix.cabalProject {
7 src = pkgs.haskell-nix.haskellLib.cleanGit {
8 name = "octopod";
9 src = ./.;
10 };
11 index-state = "2021-07-02T00:00:00Z";
12 compiler-nix-name = "ghc8105";
13 };
14in
15hsPkgs // {
16 octopod-frontend-pretty =
17 pkgs.runCommand "octopod-frontend-pretty"
18 { } ''
19 mkdir $out
20 cp ${./octopod-frontend/index.html} $out/index.html
21 cp ${hsPkgs.projectCross.ghcjs.hsPkgs.octopod-frontend.components.exes.frontend}/bin/frontend.jsexe/all.js $out/all.js
22 '';