Skip to content

Commit

Permalink
Refactor: WIP srid/haskell-flake#137
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Apr 21, 2023
1 parent 43ac378 commit ab51b7f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
7 changes: 3 additions & 4 deletions Backend/nix/run-mobility-stack.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@
cabalExe = null;
};

# TODO: haskell-flake does not have a way to parse executables, so we must specify them manually.
# See https://github.com/srid/haskell-flake/issues/36
# TODO: Refactor this after https://github.com/srid/haskell-flake/pull/137
scheduler-example-app-exe = {
nixExe = "${config.localPackagesStatic.scheduler-example}/bin/scheduler-example-app-exe";
nixExe = config.haskellProjects.default.outputs.localApps.scheduler-example-app-exe.program;
cabalExe = "scheduler-example:exe:scheduler-example-app-exe";
};
scheduler-example-scheduler-exe = {
nixExe = "${config.localPackagesStatic.scheduler-example}/bin/scheduler-example-scheduler-exe";
nixExe = config.haskellProjects.default.outputs.localApps.scheduler-example-scheduler-exe.program;
cabalExe = "scheduler-example:exe:scheduler-example-scheduler-exe";
};

Expand Down
16 changes: 10 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
common.url = "github:nammayatri/common";
flake-parts.follows = "common/flake-parts";
haskell-flake.url = "github:sbh69840/haskell-flake/poc-localapps";
common.inputs.haskell-flake.follows = "haskell-flake";

# TODO: Move to common repo?
mission-control.url = "github:Platonic-Systems/mission-control";
Expand Down

0 comments on commit ab51b7f

Please sign in to comment.