1{ sources ? import ./nix/sources.nix
2, haskellNix ? import sources.haskellNix { inherit system; }
3, pkgsSrc ? import haskellNix.sources.nixpkgs-2105
4, pkgs ? pkgsSrc (haskellNix.nixpkgsArgs // { inherit system; })
5, nix-filter ? import sources.nix-filter
6, system ? builtins.currentSystem
10 octopod-css = import ./octopod-css { inherit pkgsSrc; };
12 if prod then x // { ghcOptions = [ "-Werror" ]; }
13 else x // { ghcOptions = [ "-O0" ]; };
15 hsPkgs = pkgs.haskell-nix.cabalProject {
20 ./octopod-backend/octopod-backend.cabal
21 ./octo-cli/octo-cli.cabal
22 ./octopod-api/octopod-api.cabal
23 ./octopod-common/octopod-common.cabal
24 ./octopod-frontend/octopod-frontend.cabal
31 ghcOptions = [ "-O2" ];
34 enableDeadCodeElimination = true;
35 packages.octopod-backend = addLocalOptions (
38 src = pkgs.runCommand "octopod-backend-src" { }
41 cp -r ${./octopod-backend}/* $out
42 cp -r ${builtins.path { path = ./.git; name = "dot-git"; }}/ $out/.git/
44 components.exes.octopod-exe = {
46 pkgs.lib.mkForce [ pkgs.buildPackages.buildPackages.gitReallyMinimal ];
47 extraSrcFiles = [ ".git/**/*" ];
50 else { src = ./octopod-backend; }
52 packages.octo-cli = addLocalOptions { src = ./octo-cli; };
53 packages.octopod-api = addLocalOptions { src = ./octopod-api; };
54 packages.octopod-frontend = addLocalOptions { src = ./octopod-frontend; };
55 packages.octopod-common = addLocalOptions { src = ./octopod-common; };
59 index-state = "2021-08-04T00:00:00Z";
60 compiler-nix-name = "ghc8105";
64 octopod-frontend-pretty =
65 let frontend = hsPkgs.projectCross.ghcjs.hsPkgs.octopod-frontend.components.exes.frontend;
67 pkgs.runCommand "octopod-frontend-pretty"
70 cp -av ${octopod-css}/* $out
71 cp ${./octopod-frontend/index.html} $out/index.html
72 cp ${frontend}/bin/frontend.jsexe/all.js $out/all.js
73 cp ${frontend}/bin/frontend.jsexe/all.js.externs $out/all.js.externs
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list