1{ sources ? import ./nix/sources.nix
2, haskellNix ? import sources.haskellNix { inherit system; }
3, pkgs ? import haskellNix.sources.nixpkgs-2105 (haskellNix.nixpkgsArgs // { inherit system; })
4, system ? builtins.currentSystem
5, nix-filter ? import sources.nix-filter
8 masterPkgs = import sources.nixpkgs { inherit system; };
10 hsPkgs = pkgs.haskell-nix.stackProject {
25 enableDeadCodeElimination = true;
28 "-fexpose-all-unfoldings"
29 "-fspecialise-aggressively"
31 packages.pandoc.ghcOptions = [ "-O1" ];
32 packages.compaREST.src = nix-filter {
34 name = "compaREST-src";
35 include = with nix-filter; [
40 (inDirectory ./github-action)
41 ./awsm-css/dist/awsm.min.css
49 staticify = name: drv: pkgs.runCommand name { } ''
51 cp ${drv + "/bin"}/* $out/bin
53 ${pkgs.nukeReferences}/bin/nuke-refs $out/bin/*
56 compaRESTBin = hsPkgs.compaREST.components.exes.compaREST;
57 compaRESTStaticBin = (staticify "compaREST-static" hsPkgs.projectCross.musl64.hsPkgs.compaREST.components.exes.compaREST);
61 armDarwinCompaREST = hsPkgs.projectCross.aarch64-darwin.hsPkgs.compaREST.components.exes.compaREST;
63 compaRESTImage = pkgs.dockerTools.buildImage {
65 contents = [ compaRESTStaticBin ];
67 Entrypoint = [ "/bin/compaREST" ];
71 macOSCompaRESTBundle = pkgs.runCommand "compaREST-macOS-bundled"
73 buildInputs = [ masterPkgs.macdylibbundler ];
76 cp ${compaRESTBin}/bin/compaREST $out/compaREST
77 chmod 755 $out/compaREST
81 -p '@executable_path/lib'
85 compaRESTGithubAction =
87 action = staticify "compaREST-GitHub-Action-static" hsPkgs.projectCross.musl64.hsPkgs.compaREST.components.exes.compaREST-GitHub-Action;
88 wrapped = pkgs.runCommand "wrapped-compaREST-GitHub-Action" { buildInputs = [ pkgs.makeWrapper ]; } ''
89 makeWrapper ${action}/bin/compaREST-GitHub-Action $out/bin/pre --add-flags "pre"
90 makeWrapper ${action}/bin/compaREST-GitHub-Action $out/bin/run --add-flags "run"
93 pkgs.dockerTools.buildImage {
94 name = "typeable/compaREST-GitHub-Action";
96 contents = [ wrapped pkgs.cacert ];
99 WindowsCompaRESTBin = hsPkgs.projectCross.mingwW64.hsPkgs.compaREST.components.exes.compaREST;
104 compaRESTGithubAction
111 # We use the static version so that we don't have to rebuild everything on CI.
112 # The only binaries build on CI are static.
113 test = hsPkgs.projectCross.musl64.hsPkgs.compaREST.components.tests.compaREST-tests;
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