Skip to content

Commit

Permalink
examples: Init from quasar-web-examples
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Beinke <[email protected]>
  • Loading branch information
queezle42 and thelegy committed Mar 18, 2023
1 parent 686e905 commit f15f9a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
@@ -1 +1 @@
packages: */*.cabal */examples/*.cabal
packages: */*.cabal
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.0

name: quasar-web-examples
name: quasar-examples
version: 0.1.0.0
license: BSD-2-Clause
build-type: Simple
Expand Down Expand Up @@ -58,4 +58,4 @@ executable quasar-web-example
quasar-web,
text,
warp,
main-is: Main.hs
main-is: Web.hs
5 changes: 3 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
results = {
precise-side-effects = haskellPackages.precise-side-effects;
quasar = haskellPackages.quasar;
quasar-examples = haskellPackages.quasar-examples;
quasar-mqtt = haskellPackages.quasar-mqtt;
quasar-timer = haskellPackages.quasar-timer;
quasar-web = haskellPackages.quasar-web;
quasar-web-client = pkgs.quasar-web-client;
quasar-web-examples = haskellPackages.quasar-web-examples;
};
in results // {
default = pkgs.linkFarm "quasar-all" (results // mapAttrs' (k: v: nameValuePair "${k}-doc" (v.doc or pkgs.emptyDirectory)) results);
Expand All @@ -39,6 +39,7 @@
packageOverrides = hfinal: hprev: prev.haskell.packageOverrides hfinal hprev // {
precise-side-effects = hfinal.callCabal2nix "precise-side-effects" ./precise-side-effects {};
quasar = hfinal.callCabal2nix "quasar" ./quasar {};
quasar-examples = hfinal.callCabal2nix "quasar-examples" ./examples {};
quasar-mqtt = hfinal.callCabal2nix "quasar-mqtt" ./quasar-mqtt {};
quasar-timer = hfinal.callCabal2nix "quasar-timer" ./quasar-timer {};
quasar-web =
Expand All @@ -49,7 +50,6 @@
ln -s ${final.quasar-web-client} $out/data/quasar-web-client
'';
in hfinal.callCabal2nix "quasar-web" srcWithClient {};
quasar-web-examples = hfinal.callCabal2nix "quasar-web-examples" ./quasar-web/examples {};
# Due to a ghc bug in 9.4.3 and 9.2.5
ListLike = final.haskell.lib.dontCheck hprev.ListLike;
net-mqtt = final.haskell.lib.doJailbreak hprev.net-mqtt;
Expand All @@ -72,6 +72,7 @@
packages = hpkgs: [
hpkgs.precise-side-effects
hpkgs.quasar
hpkgs.quasar-examples
hpkgs.quasar-mqtt
hpkgs.quasar-timer
hpkgs.quasar-web
Expand Down

0 comments on commit f15f9a5

Please sign in to comment.