1{ sources ? import ./nix/sources.nix
2, haskellNix ? import sources.haskellNix { inherit system; }
3, pkgsSrc ? import haskellNix.sources.nixpkgs-unstable
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; };
11 insaneOptimizationFlags = [
13 "-fexpose-all-unfoldings"
14 "-fspecialise-aggressively"
18 ghcOptions = [ "-Werror" ] ++ insaneOptimizationFlags;
20 else x // { ghcOptions = [ "-O0" ]; };
22 hsPkgs = pkgs.haskell-nix.cabalProject {
27 ./octopod-backend/octopod-backend.cabal
28 ./octo-cli/octo-cli.cabal
29 ./octopod-api/octopod-api.cabal
30 ./octopod-common/octopod-common.cabal
31 ./octopod-frontend/octopod-frontend.cabal
38 ghcOptions = insaneOptimizationFlags;
41 enableDeadCodeElimination = true;
42 packages.octopod-backend = addLocalOptions (
45 src = pkgs.runCommand "octopod-backend-src" { }
48 cp -r ${./octopod-backend}/* $out
49 cp -r ${builtins.path { path = ./.git; name = "dot-git"; }}/ $out/.git/
51 components.exes.octopod-exe = {
53 pkgs.lib.mkForce [ pkgs.buildPackages.buildPackages.gitReallyMinimal ];
54 extraSrcFiles = [ ".git/**/*" ];
57 else { src = ./octopod-backend; }
59 packages.octo-cli = addLocalOptions { src = ./octo-cli; };
60 packages.octopod-api = addLocalOptions { src = ./octopod-api; };
61 packages.octopod-frontend = addLocalOptions { src = ./octopod-frontend; };
62 packages.octopod-common = addLocalOptions { src = ./octopod-common; };
66 index-state = "2021-11-22T00:00:00Z";
67 compiler-nix-name = "ghc8107";
71 octopod-frontend-pretty =
72 let frontend = hsPkgs.projectCross.ghcjs.hsPkgs.octopod-frontend.components.exes.frontend;
74 pkgs.runCommand "octopod-frontend-pretty"
77 cp -av ${octopod-css}/* $out
78 cp ${./octopod-frontend/index.html} $out/index.html
79 cp ${frontend}/bin/frontend.jsexe/all.js $out/all.js
80 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