From 0e0a9143e9f1a26e2ce39b00f00d8cb7e8a152dc Mon Sep 17 00:00:00 2001 From: Cale Gibbard Date: Wed, 22 Feb 2023 10:51:46 -0500 Subject: [PATCH] Add reflex-material --- default.nix | 1 + dep/reflex-material/default.nix | 2 ++ dep/reflex-material/github.json | 8 ++++++++ dep/reflex-material/thunk.nix | 12 ++++++++++++ frontend/frontend.cabal | 2 ++ 5 files changed, 25 insertions(+) create mode 100644 dep/reflex-material/default.nix create mode 100644 dep/reflex-material/github.json create mode 100644 dep/reflex-material/thunk.nix diff --git a/default.nix b/default.nix index 04ddb48..62132cf 100644 --- a/default.nix +++ b/default.nix @@ -42,5 +42,6 @@ with obelisk; ver = "0.2.1.0"; sha256 = "04glpmwp50qi29h8cb5j0w1rz0ww30nw4xgj2a3l7zh1gprhwj89"; } {}; + reflex-material = self.callCabal2nix "reflex-material" (nix-thunk.thunkSource ./dep/reflex-material + "/reflex-material") {}; }; }) // { inherit (obelisk) nixpkgs ; }) diff --git a/dep/reflex-material/default.nix b/dep/reflex-material/default.nix new file mode 100644 index 0000000..2b4d4ab --- /dev/null +++ b/dep/reflex-material/default.nix @@ -0,0 +1,2 @@ +# DO NOT HAND-EDIT THIS FILE +import (import ./thunk.nix) \ No newline at end of file diff --git a/dep/reflex-material/github.json b/dep/reflex-material/github.json new file mode 100644 index 0000000..2b55a2e --- /dev/null +++ b/dep/reflex-material/github.json @@ -0,0 +1,8 @@ +{ + "owner": "rvl", + "repo": "reflex-material", + "branch": "master", + "private": false, + "rev": "b1c0364626eaec88e78e47fbb4cee1a984ccb361", + "sha256": "1r76mvglhw2yxvbaxj9fpazpdlh01li8ma5cvqialy1iq704sw1v" +} diff --git a/dep/reflex-material/thunk.nix b/dep/reflex-material/thunk.nix new file mode 100644 index 0000000..20f2d28 --- /dev/null +++ b/dep/reflex-material/thunk.nix @@ -0,0 +1,12 @@ +# DO NOT HAND-EDIT THIS FILE +let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }: + if !fetchSubmodules && !private then builtins.fetchTarball { + url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256; + } else (import (builtins.fetchTarball { + url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz"; + sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr"; +}) {}).fetchFromGitHub { + inherit owner repo rev sha256 fetchSubmodules private; + }; + json = builtins.fromJSON (builtins.readFile ./github.json); +in fetch json \ No newline at end of file diff --git a/frontend/frontend.cabal b/frontend/frontend.cabal index ba6e5e0..ff2e916 100644 --- a/frontend/frontend.cabal +++ b/frontend/frontend.cabal @@ -11,6 +11,7 @@ library , obelisk-route , jsaddle , reflex-dom-core + , reflex-material , obelisk-executable-config-lookup , obelisk-generated-static , text @@ -26,6 +27,7 @@ executable frontend , obelisk-frontend , obelisk-route , reflex-dom + , reflex-material , obelisk-generated-static , frontend ghc-options: -threaded -O -Wall -Wredundant-constraints -Wincomplete-uni-patterns -Wincomplete-record-updates -fno-show-valid-hole-fits